
``` 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; | ```
25 lines
468 B
Text
25 lines
468 B
Text
error: missing `in` in `for` loop
|
|
--> $DIR/for-loop-missing-in.rs:4:11
|
|
|
|
|
LL | for _i 0..2 {
|
|
| ^
|
|
|
|
|
help: try adding `in` here
|
|
|
|
|
LL | for _i in 0..2 {
|
|
| ++
|
|
|
|
error: missing `in` in `for` loop
|
|
--> $DIR/for-loop-missing-in.rs:6:12
|
|
|
|
|
LL | for _i of 0..2 {
|
|
| ^^
|
|
|
|
|
help: try using `in` here instead
|
|
|
|
|
LL - for _i of 0..2 {
|
|
LL + for _i in 0..2 {
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|