]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/cross-return-site-inference.stderr
Rollup merge of #95504 - jyn514:library-alias, r=Mark-Simulacrum
[rust.git] / src / test / ui / impl-trait / cross-return-site-inference.stderr
index 06afb938c5fad59d37a0cc9ec9b8be69e7b2d6c8..d458c7be783d59ae1ec5b8a0fdf35daf8090d6ef 100644 (file)
@@ -7,6 +7,7 @@ LL |     Err("whoops")?;
    |                  ^ the trait `From<&str>` is not implemented for `impl Debug`
    |
    = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
+   = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
    = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, &str>>` for `Result<(), impl Debug>`
 
 error[E0277]: the trait bound `impl Debug: From<&str>` is not satisfied