1 error[E0277]: `main` has invalid return type `std::result::Result<f32, std::num::ParseFloatError>`
2 --> $DIR/termination-trait-test-wrong-type.rs:10:1
4 LL | / fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> {
7 | |_^ `main` can only return types that implement `std::process::Termination`
9 ::: $SRC_DIR/libtest/lib.rs:LL:COL
11 LL | pub fn assert_test_result<T: Termination>(result: T) {
12 | ----------- required by this bound in `test::assert_test_result`
14 = help: the trait `std::process::Termination` is not implemented for `std::result::Result<f32, std::num::ParseFloatError>`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0277`.