]> git.lizzy.rs Git - rust.git/blob - tests/ui/destructuring-assignment/bad-expr-lhs.rs
Make `output_filenames` a real query
[rust.git] / tests / ui / destructuring-assignment / bad-expr-lhs.rs
1 fn main() {
2     1 = 2; //~ ERROR invalid left-hand side of assignment
3     1 += 2; //~ ERROR invalid left-hand side of assignment
4     (1, 2) = (3, 4);
5     //~^ ERROR invalid left-hand side of assignment
6     //~| ERROR invalid left-hand side of assignment
7
8     None = Some(3); //~ ERROR invalid left-hand side of assignment
9 }