```
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;
|
```
19 lines
520 B
Plaintext
19 lines
520 B
Plaintext
error: expected one of `(`, `,`, `=`, `{`, or `}`, found `:`
|
|
--> $DIR/issue-103869.rs:5:8
|
|
|
|
|
LL | enum VecOrMap {
|
|
| -------- while parsing this enum
|
|
LL |
|
|
LL | vec: Vec<usize>,
|
|
| ^ expected one of `(`, `,`, `=`, `{`, or `}`
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
|
help: perhaps you meant to use `struct` here
|
|
|
|
|
LL - enum VecOrMap {
|
|
LL + struct VecOrMap {
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|