2013-10-29 01:27:12 +09:00
|
|
|
fn main() {
|
2015-07-27 03:49:38 +03:00
|
|
|
1 = 2; //~ ERROR invalid left-hand side expression
|
|
|
|
1 += 2; //~ ERROR invalid left-hand side expression
|
|
|
|
(1, 2) = (3, 4); //~ ERROR invalid left-hand side expression
|
2013-10-29 01:27:12 +09:00
|
|
|
|
|
|
|
let (a, b) = (1, 2);
|
2015-07-27 03:49:38 +03:00
|
|
|
(a, b) = (3, 4); //~ ERROR invalid left-hand side expression
|
2013-10-29 01:27:12 +09:00
|
|
|
|
2015-07-27 03:49:38 +03:00
|
|
|
None = Some(3); //~ ERROR invalid left-hand side expression
|
2013-10-29 01:27:12 +09:00
|
|
|
}
|