]> git.lizzy.rs Git - rust.git/blob - src/test/ui/catch/catch-block-type-error.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / catch / catch-block-type-error.stderr
1 error[E0271]: type mismatch resolving `<std::option::Option<f32> as std::ops::Try>::Ok == {integer}`
2   --> $DIR/catch-block-type-error.rs:18:9
3    |
4 LL |         42
5    |         ^^
6    |         |
7    |         expected f32, found integral variable
8    |         help: use a float literal: `42.0`
9    |
10    = note: expected type `f32`
11               found type `{integer}`
12
13 error[E0271]: type mismatch resolving `<std::option::Option<i32> as std::ops::Try>::Ok == ()`
14   --> $DIR/catch-block-type-error.rs:24:5
15    |
16 LL |     };
17    |     ^ expected i32, found ()
18    |
19    = note: expected type `i32`
20               found type `()`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0271`.