error[E0271]: type mismatch resolving ` 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 ` 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`.