2013-10-28 11:27:12 -05:00
|
|
|
fn main() {
|
2019-12-22 12:42:15 -06:00
|
|
|
1 = 2; //~ ERROR invalid left-hand side of assignment
|
|
|
|
1 += 2; //~ ERROR invalid left-hand side of assignment
|
2021-11-03 01:50:57 -05:00
|
|
|
(1, 2) = (3, 4);
|
|
|
|
//~^ ERROR invalid left-hand side of assignment
|
2020-11-04 10:32:52 -06:00
|
|
|
//~| ERROR invalid left-hand side of assignment
|
2013-10-28 11:27:12 -05:00
|
|
|
|
2019-12-22 12:42:15 -06:00
|
|
|
None = Some(3); //~ ERROR invalid left-hand side of assignment
|
2013-10-28 11:27:12 -05:00
|
|
|
}
|