Files
rust/tests/ui/methods/issues/issue-105732.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

25 lines
691 B
Plaintext

error[E0380]: auto traits cannot have associated items
--> $DIR/issue-105732.rs:4:8
|
LL | auto trait Foo {
| --- auto traits cannot have associated items
LL | fn g(&self);
| ---^-------- help: remove these associated items
error[E0599]: no method named `g` found for reference `&Self` in the current scope
--> $DIR/issue-105732.rs:10:14
|
LL | self.g();
| ^
|
help: there is a method `f` with a similar name
|
LL - self.g();
LL + self.f();
|
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0380, E0599.
For more information about an error, try `rustc --explain E0380`.