blob: 1dc798b5e229de1dabb4b4136558b11271d5dc60 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/issue-84160.rs:5:12
|
LL | fn mismatched_types_with_reference(x: &u32) -> &u32 {
| ---- expected `&u32` because of return type
...
LL | return "test";
| ^^^^^^ expected `&u32`, found `&str`
|
= note: expected reference `&u32`
found reference `&'static str`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.