]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-84160.rs
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / src / test / 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() {}