rust/src/test/ui/bad/bad-expr-lhs.stderr

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0070]: invalid left-hand side expression
2018-12-25 09:56:47 -06:00
--> $DIR/bad-expr-lhs.rs:2:5
2018-08-08 07:28:26 -05:00
|
LL | 1 = 2; //~ ERROR invalid left-hand side expression
| ^^^^^ left-hand of expression not valid
error[E0067]: invalid left-hand side expression
2018-12-25 09:56:47 -06:00
--> $DIR/bad-expr-lhs.rs:3:5
2018-08-08 07:28:26 -05:00
|
LL | 1 += 2; //~ ERROR invalid left-hand side expression
| ^ invalid expression for left-hand side
error[E0070]: invalid left-hand side expression
2018-12-25 09:56:47 -06:00
--> $DIR/bad-expr-lhs.rs:4:5
2018-08-08 07:28:26 -05:00
|
LL | (1, 2) = (3, 4); //~ ERROR invalid left-hand side expression
| ^^^^^^^^^^^^^^^ left-hand of expression not valid
error[E0070]: invalid left-hand side expression
2018-12-25 09:56:47 -06:00
--> $DIR/bad-expr-lhs.rs:7:5
2018-08-08 07:28:26 -05:00
|
LL | (a, b) = (3, 4); //~ ERROR invalid left-hand side expression
| ^^^^^^^^^^^^^^^ left-hand of expression not valid
error[E0070]: invalid left-hand side expression
2018-12-25 09:56:47 -06:00
--> $DIR/bad-expr-lhs.rs:9:5
2018-08-08 07:28:26 -05:00
|
LL | None = Some(3); //~ ERROR invalid left-hand side expression
| ^^^^^^^^^^^^^^ left-hand of expression not valid
error: aborting due to 5 previous errors
Some errors occurred: E0067, E0070.
For more information about an error, try `rustc --explain E0067`.