1 error[E0271]: type mismatch resolving `<&i32 as Deref>::Target == String`
2 --> $DIR/default-body-type-err.rs:7:22
4 LL | fn lol(&self) -> impl Deref<Target = String> {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found struct `String`
8 | ----- return type was inferred to be `&i32` here
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0271`.