blob: 1dc798b5e229de1dabb4b4136558b11271d5dc60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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`.
|