mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-19 22:20:36 +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;
|
```
31 lines
911 B
Plaintext
31 lines
911 B
Plaintext
error[E0599]: no variant or associated item named `Baz` found for enum `Foo` in the current scope
|
|
--> $DIR/issue-28971.rs:7:18
|
|
|
|
|
LL | enum Foo {
|
|
| -------- variant or associated item `Baz` not found for this enum
|
|
...
|
|
LL | Foo::Baz(..) => (),
|
|
| ^^^ variant or associated item not found in `Foo`
|
|
|
|
|
help: there is a variant with a similar name
|
|
|
|
|
LL - Foo::Baz(..) => (),
|
|
LL + Foo::Bar(..) => (),
|
|
|
|
|
|
|
error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
|
|
--> $DIR/issue-28971.rs:15:5
|
|
|
|
|
LL | f();
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
help: consider changing this to be mutable
|
|
|
|
|
LL | fn foo<F>(mut f: F) where F: FnMut() {
|
|
| +++
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0596, E0599.
|
|
For more information about an error, try `rustc --explain E0596`.
|