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