]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/typeck.stderr
Rollup merge of #80069 - jyn514:core-assert, r=dtolnay
[rust.git] / src / test / ui / rfc-2294-if-let-guard / typeck.stderr
1 error[E0308]: mismatched types
2   --> $DIR/typeck.rs:10:22
3    |
4 LL |         Ok(x) if let Err(_) = x => {},
5    |                      ^^^^^^ expected enum `Option`, found enum `std::result::Result`
6    |
7    = note: expected enum `Option<bool>`
8               found enum `std::result::Result<_, _>`
9
10 error[E0308]: mismatched types
11   --> $DIR/typeck.rs:12:22
12    |
13 LL |         Ok(x) if let 0 = x => {},
14    |                      ^ expected enum `Option`, found integer
15    |
16    = note: expected enum `Option<bool>`
17               found type `{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.