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