summary refs log tree commit diff
path: root/src/test/ui/bad/bad-expr-lhs.stderr
blob: 5937beef9c7a20cff8f80b6c6953420782225ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error[E0070]: invalid left-hand side expression
  --> $DIR/bad-expr-lhs.rs:12:5
   |
LL |     1 = 2; //~ ERROR invalid left-hand side expression
   |     ^^^^^ left-hand of expression not valid

error[E0067]: invalid left-hand side expression
  --> $DIR/bad-expr-lhs.rs:13:5
   |
LL |     1 += 2; //~ ERROR invalid left-hand side expression
   |     ^ invalid expression for left-hand side

error[E0070]: invalid left-hand side expression
  --> $DIR/bad-expr-lhs.rs:14:5
   |
LL |     (1, 2) = (3, 4); //~ ERROR invalid left-hand side expression
   |     ^^^^^^^^^^^^^^^ left-hand of expression not valid

error[E0070]: invalid left-hand side expression
  --> $DIR/bad-expr-lhs.rs:17:5
   |
LL |     (a, b) = (3, 4); //~ ERROR invalid left-hand side expression
   |     ^^^^^^^^^^^^^^^ left-hand of expression not valid

error[E0070]: invalid left-hand side expression
  --> $DIR/bad-expr-lhs.rs:19:5
   |
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`.