error: functions using `#[should_panic]` must return `()`
- --> $DIR/termination-trait-in-test-should-panic.rs:22:1
+ --> $DIR/termination-trait-in-test-should-panic.rs:21:1
|
LL | / fn not_a_num() -> Result<(), ParseIntError> {
LL | | //~^ ERROR functions using `#[should_panic]` must return `()`
error[E0277]: `main` has invalid return type `std::result::Result<f32, std::num::ParseIntError>`
- --> $DIR/termination-trait-test-wrong-type.rs:18:1
+ --> $DIR/termination-trait-test-wrong-type.rs:16:1
|
LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseIntError> { //~ ERROR
LL | | "0".parse()