1 error[E0308]: mismatched types
2 --> $DIR/issue-84160.rs:5:12
4 LL | fn mismatched_types_with_reference(x: &u32) -> &u32 {
5 | ---- expected `&u32` because of return type
8 | ^^^^^^ expected `u32`, found `str`
10 = note: expected reference `&u32`
11 found reference `&'static str`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0308`.