summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2497-if-let-chains/no-double-assigments.rs
blob: 6b91c455e0e9769685826d96d4062213a1bc011e (plain)
1
2
3
4
5
6
7
8
9
// check-pass

fn main() {
    loop {
        // [1][0] should leave top scope
        if true && [1][0] == 1 && true {
        }
    }
}