summary refs log tree commit diff
path: root/src/test/ui/issues/issue-77218.rs
blob: a6a2401795ff4690de26464185566ef459dcd38e (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let value = [7u8];
    while Some(0) = value.get(0) { //~ ERROR destructuring assignments are unstable
        //~| ERROR invalid left-hand side of assignment
        //~| ERROR mismatched types
        //~| ERROR mismatched types

        // FIXME The following diagnostic should also be emitted
        // HELP you might have meant to use pattern matching
    }
}