blob: 53794783a3c87ed46e8ee1df21d71380d1bb903a (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
1 = 2; //~ ERROR invalid left-hand side of assignment
1 += 2; //~ ERROR invalid left-hand side of assignment
(1, 2) = (3, 4);
//~^ ERROR invalid left-hand side of assignment
//~| ERROR invalid left-hand side of assignment
None = Some(3); //~ ERROR invalid left-hand side of assignment
}
|