]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-77218.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / issues / issue-77218.rs
1 fn main() {
2 let value = [7u8];
3 while Some(0) = value.get(0) { //~ ERROR destructuring assignments are unstable
4 //~| ERROR invalid left-hand side of assignment
5 //~| ERROR mismatched types
6 //~| ERROR mismatched types
7
8 // FIXME The following diagnostic should also be emitted
9 // HELP you might have meant to use pattern matching
10 }
11 }