]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-block/try-block-type-error.stderr
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / try-block / try-block-type-error.stderr
1 error[E0271]: type mismatch resolving `<Option<f32> as Try>::Output == {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 `<Option<i32> as Try>::Output == ()`
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`.