]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-84160.rs
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-84160.rs
1 fn mismatched_types_with_reference(x: &u32) -> &u32 {
2     if false {
3         return x;
4     }
5     return "test";
6     //~^ERROR mismatched types
7 }
8
9 fn main() {}