]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-92741.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / issues / issue-92741.rs
1 // run-rustfix
2 fn main() {}
3 fn _foo() -> bool {
4     &  //~ ERROR 4:5: 6:36: mismatched types [E0308]
5     mut
6     if true { true } else { false }
7 }
8
9 fn _bar() -> bool {
10     &  //~ ERROR 10:5: 11:40: mismatched types [E0308]
11     mut if true { true } else { false }
12 }
13
14 fn _baz() -> bool {
15     & mut //~ ERROR 15:5: 16:36: mismatched types [E0308]
16     if true { true } else { false }
17 }