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