]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-77218.rs
Auto merge of #86860 - fee1-dead:stabilize, r=LeSeulArtichaut
[rust.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 }