rust/tests/ui/rfcs/rfc-2497-if-let-chains/no-double-assigments.rs
2024-02-16 20:02:50 +00:00

10 lines
139 B
Rust

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