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