]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0070.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0070.stderr
1 error[E0070]: invalid left-hand side of assignment
2   --> $DIR/E0070.rs:6:16
3    |
4 LL |     SOME_CONST = 14;
5    |     ---------- ^
6    |     |
7    |     cannot assign to this expression
8
9 error[E0070]: invalid left-hand side of assignment
10   --> $DIR/E0070.rs:7:7
11    |
12 LL |     1 = 3;
13    |     - ^
14    |     |
15    |     cannot assign to this expression
16
17 error[E0070]: invalid left-hand side of assignment
18   --> $DIR/E0070.rs:8:23
19    |
20 LL |     some_other_func() = 4;
21    |     ----------------- ^
22    |     |
23    |     cannot assign to this expression
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0070`.