blob: f779121bbc65ae590465b076d39fc14d9aa69709 [file] [log] [blame]
error[E0271]: type mismatch resolving `<std::option::Option<f32> as std::ops::Try>::Ok == {integer}`
--> $DIR/try-block-type-error.rs:10:9
|
LL | 42
| ^^
| |
| expected `f32`, found integer
| help: use a float literal: `42.0`
error[E0271]: type mismatch resolving `<std::option::Option<i32> as std::ops::Try>::Ok == ()`
--> $DIR/try-block-type-error.rs:16:5
|
LL | };
| ^ expected `i32`, found `()`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0271`.