]> git.lizzy.rs Git - rust.git/blob - src/test/ui/destructuring-assignment/bad-expr-lhs.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / 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 }