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