1 error[E0277]: `main` has invalid return type `Result<f32, ParseFloatError>`
2 --> $DIR/termination-trait-test-wrong-type.rs:6:1
5 | ------- in this procedural macro expansion
6 LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> {
9 | |_^ `main` can only return types that implement `Termination`
11 = help: the trait `Termination` is not implemented for `Result<f32, ParseFloatError>`
12 = help: the following other types implement trait `Termination`:
16 note: required by a bound in `assert_test_result`
17 --> $SRC_DIR/test/src/lib.rs:LL:COL
19 LL | pub fn assert_test_result<T: Termination>(result: T) {
20 | ^^^^^^^^^^^ required by this bound in `assert_test_result`
21 = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0277`.