summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-77218/issue-77218-2.rs
blob: 01dca1ae16c781b71229deb4a2132994c207473a (plain)
1
2
3
4
5
6
// run-rustfix
fn main() {
    let value = [7u8];
    while Some(0) = value.get(0) { //~ ERROR invalid left-hand side of assignment
    }
}