```
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;
|
```
17 lines
464 B
Plaintext
17 lines
464 B
Plaintext
error: expected one of `!`, `(`, `::`, `;`, `<`, or `=`, found `i32`
|
|
--> $DIR/sugar-no-const.rs:7:18
|
|
|
|
|
LL | let _x: &pin i32 = todo!();
|
|
| - ^^^ expected one of `!`, `(`, `::`, `;`, `<`, or `=`
|
|
| |
|
|
| while parsing the type for `_x`
|
|
|
|
|
help: there is a keyword `in` with a similar name
|
|
|
|
|
LL - let _x: &pin i32 = todo!();
|
|
LL + let _x: &in i32 = todo!();
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|