1 error[E0277]: `?` couldn't convert the error to `impl Debug`
2 --> $DIR/cross-return-site-inference.rs:32:18
4 LL | fn muh() -> Result<(), impl std::fmt::Debug> {
5 | -------------------------------- expected `impl Debug` because of this
7 | ^ the trait `From<&str>` is not implemented for `impl Debug`
9 = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
10 = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
11 = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, &str>>` for `Result<(), impl Debug>`
13 error[E0277]: the trait bound `impl Debug: From<&str>` is not satisfied
14 --> $DIR/cross-return-site-inference.rs:37:16
16 LL | return Err(From::from("foo"));
17 | ^^^^^^^^^^ the trait `From<&str>` is not implemented for `impl Debug`
19 error[E0277]: the trait bound `impl Debug: From<&str>` is not satisfied
20 --> $DIR/cross-return-site-inference.rs:42:9
22 LL | Err(From::from("foo"))
23 | ^^^^^^^^^^ the trait `From<&str>` is not implemented for `impl Debug`
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0277`.