summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-92741.rs
blob: 413d5bf047853a1fb056e8557b70b43d1570318c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-rustfix
fn main() {}
fn _foo() -> bool {
    &  //~ ERROR 4:5: 6:36: mismatched types [E0308]
    mut
    if true { true } else { false }
}

fn _bar() -> bool {
    &  //~ ERROR 10:5: 11:40: mismatched types [E0308]
    mut if true { true } else { false }
}

fn _baz() -> bool {
    & mut //~ ERROR 15:5: 16:36: mismatched types [E0308]
    if true { true } else { false }
}