about summary refs log tree commit diff
path: root/tests/ui/binding/invalid-assignment-in-while-loop-77218.rs
blob: 9f249180e83a20ed4027c414f99429eca78bf03b (plain)
1
2
3
4
5
6
// https://github.com/rust-lang/rust/issues/77218
//@ run-rustfix
fn main() {
    let value = [7u8];
    while Some(0) = value.get(0) {} //~ ERROR invalid left-hand side of assignment
}