os-rust/src/test/ui/error-codes/E0070.stderr

32 lines
939 B
Text
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0070]: invalid left-hand side expression
--> $DIR/E0070.rs:16:5
|
16 | SOME_CONST = 14; //~ ERROR E0070
| ^^^^^^^^^^^^^^^ left-hand of expression not valid
error[E0070]: invalid left-hand side expression
--> $DIR/E0070.rs:17:5
|
17 | 1 = 3; //~ ERROR E0070
| ^^^^^ left-hand of expression not valid
error[E0308]: mismatched types
--> $DIR/E0070.rs:18:25
|
18 | some_other_func() = 4; //~ ERROR E0070
| ^ expected (), found integral variable
|
= note: expected type `()`
found type `{integer}`
error[E0070]: invalid left-hand side expression
--> $DIR/E0070.rs:18:5
|
18 | some_other_func() = 4; //~ ERROR E0070
| ^^^^^^^^^^^^^^^^^^^^^ left-hand of expression not valid
error: aborting due to 4 previous errors
2018-02-19 21:40:25 +01:00
You've got a few errors: E0070, E0308
If you want more information on an error, try using "rustc --explain E0070"