```
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;
|
```
27 lines
490 B
Plaintext
27 lines
490 B
Plaintext
error: expected `:`, found `=`
|
|
--> $DIR/issue-57684.rs:27:20
|
|
|
|
|
LL | let _ = X { f1 = 5 };
|
|
| ^
|
|
|
|
|
help: replace equals symbol with a colon
|
|
|
|
|
LL - let _ = X { f1 = 5 };
|
|
LL + let _ = X { f1: 5 };
|
|
|
|
|
|
|
error: expected `:`, found `=`
|
|
--> $DIR/issue-57684.rs:32:12
|
|
|
|
|
LL | f1 = 5,
|
|
| ^
|
|
|
|
|
help: replace equals symbol with a colon
|
|
|
|
|
LL - f1 = 5,
|
|
LL + f1: 5,
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|