File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/test/ui/rfc-1937-termination-trait Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- error[E0277]: `main` has invalid return type `Result< f32, ParseFloatError> `
1+ error[E0277]: `main` has invalid return type `f32`
22 --> $DIR/termination-trait-test-wrong-type.rs:6:1
33 |
44LL | #[test]
@@ -8,11 +8,8 @@ LL | | "0".parse()
88LL | | }
99 | |_^ `main` can only return types that implement `Termination`
1010 |
11- = help: the trait `Termination` is not implemented for `Result<f32, ParseFloatError>`
12- = help: the following other types implement trait `Termination`:
13- Result<!, E>
14- Result<(), E>
15- Result<Infallible, E>
11+ = help: the trait `Termination` is not implemented for `f32`
12+ = note: required because of the requirements on the impl of `Termination` for `Result<f32, ParseFloatError>`
1613note: required by a bound in `assert_test_result`
1714 --> $SRC_DIR/test/src/lib.rs:LL:COL
1815 |
You can’t perform that action at this time.
0 commit comments