rust/tests/ui/issues/issue-28971.stderr
Esteban Küber f0845adb0c Show diff suggestion format on verbose replacement
```
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;
   |
```
2025-02-10 20:21:39 +00:00

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`.