]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / rfc-1937-termination-trait / termination-trait-test-wrong-type.stderr
index f8eaf61d7d7eca08309a021653ba9271f35142eb..96a899ecca581c929ca1d7fa19837e99d7acf6bc 100644 (file)
@@ -9,6 +9,10 @@ LL | | }
    | |_^ `main` can only return types that implement `Termination`
    |
    = help: the trait `Termination` is not implemented for `Result<f32, ParseFloatError>`
+   = help: the following other types implement trait `Termination`:
+             Result<!, E>
+             Result<(), E>
+             Result<Infallible, E>
 note: required by a bound in `assert_test_result`
   --> $SRC_DIR/test/src/lib.rs:LL:COL
    |