mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-05 22:48:02 +00:00

``` error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields --> $DIR/attempted-access-non-fatal.rs:7:15 | LL | let _ = 2.l; | ^ | help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix | LL - let _ = 2.l; LL + let _ = 2.0f64; | ```
39 lines
776 B
Plaintext
39 lines
776 B
Plaintext
error: expected pattern, found `let`
|
|
--> $DIR/unnecessary-let.rs:4:9
|
|
|
|
|
LL | for let _x of [1, 2, 3] {}
|
|
| ^^^
|
|
|
|
|
help: remove the unnecessary `let` keyword
|
|
|
|
|
LL - for let _x of [1, 2, 3] {}
|
|
LL + for _x of [1, 2, 3] {}
|
|
|
|
|
|
|
error: missing `in` in `for` loop
|
|
--> $DIR/unnecessary-let.rs:4:16
|
|
|
|
|
LL | for let _x of [1, 2, 3] {}
|
|
| ^^
|
|
|
|
|
help: try using `in` here instead
|
|
|
|
|
LL - for let _x of [1, 2, 3] {}
|
|
LL + for let _x in [1, 2, 3] {}
|
|
|
|
|
|
|
error: expected pattern, found `let`
|
|
--> $DIR/unnecessary-let.rs:9:9
|
|
|
|
|
LL | let 1 => {}
|
|
| ^^^
|
|
|
|
|
help: remove the unnecessary `let` keyword
|
|
|
|
|
LL - let 1 => {}
|
|
LL + 1 => {}
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|