mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +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; | ```
42 lines
823 B
Plaintext
42 lines
823 B
Plaintext
error: expected expression, found keyword `mut`
|
|
--> $DIR/issue-103529.rs:5:6
|
|
|
|
|
LL | m! { mut x }
|
|
| ^^^ expected expression
|
|
|
|
error: expected a statement
|
|
--> $DIR/issue-103529.rs:5:10
|
|
|
|
|
LL | ($s:stmt) => {}
|
|
| ------- while parsing argument for this `stmt` macro fragment
|
|
...
|
|
LL | m! { mut x }
|
|
| ^
|
|
|
|
error: invalid variable declaration
|
|
--> $DIR/issue-103529.rs:8:6
|
|
|
|
|
LL | m! { auto x }
|
|
| ^^^^
|
|
|
|
|
help: write `let` instead of `auto` to introduce a new variable
|
|
|
|
|
LL - m! { auto x }
|
|
LL + m! { let x }
|
|
|
|
|
|
|
error: invalid variable declaration
|
|
--> $DIR/issue-103529.rs:10:6
|
|
|
|
|
LL | m! { var x }
|
|
| ^^^
|
|
|
|
|
help: write `let` instead of `var` to introduce a new variable
|
|
|
|
|
LL - m! { var x }
|
|
LL + m! { let x }
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|