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