]>
Commit | Line | Data |
---|---|---|
c295e0f8 | 1 | error[E0380]: auto traits cannot have associated items |
ba9703b0 | 2 | --> $DIR/issue-23080.rs:5:8 |
8faf50e0 | 3 | | |
c295e0f8 XL |
4 | LL | unsafe auto trait Trait { |
5 | | ----- auto trait cannot have associated items | |
6 | LL | fn method(&self) { | |
7 | | _____- ^^^^^^ | |
8 | LL | | println!("Hello"); | |
9 | LL | | } | |
10 | | |_____- help: remove these associated items | |
8faf50e0 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0380`. |