fix rebase
This commit is contained in:
parent
86b3f3f2b3
commit
fc6c19e2dc
2 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
// ignore-tidy-filelength
|
||||
use crate::def::{DefKind, Namespace, Res};
|
||||
use crate::def::{CtorKind, DefKind, Namespace, Res};
|
||||
use crate::def_id::DefId;
|
||||
crate use crate::hir_id::HirId;
|
||||
|
|
|
@ -3,12 +3,12 @@ error[E0308]: mismatched types
|
|||
|
|
||||
LL | / if x {
|
||||
LL | | Err(42)
|
||||
| | ^^^^^^^ expected `()`, found enum `std::result::Result`
|
||||
| | ^^^^^^^ expected `()`, found enum `Result`
|
||||
LL | | }
|
||||
| |_____- expected this to be `()`
|
||||
|
|
||||
= note: expected unit type `()`
|
||||
found enum `std::result::Result<_, {integer}>`
|
||||
found enum `Result<_, {integer}>`
|
||||
help: you might have meant to return this value
|
||||
|
|
||||
LL | return Err(42);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue