]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-block/try-block-type-error.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / try-block / try-block-type-error.stderr
1 error[E0271]: type mismatch resolving `<std::option::Option<f32> as std::ops::Try>::Ok == {integer}`
2   --> $DIR/try-block-type-error.rs:10:9
3    |
4 LL |         42
5    |         ^^
6    |         |
7    |         expected f32, found integer
8    |         help: use a float literal: `42.0`
9
10 error[E0271]: type mismatch resolving `<std::option::Option<i32> as std::ops::Try>::Ok == ()`
11   --> $DIR/try-block-type-error.rs:16:5
12    |
13 LL |     };
14    |     ^ expected i32, found ()
15
16 error: aborting due to 2 previous errors
17
18 For more information about this error, try `rustc --explain E0271`.