]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-77218.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[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 }