]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auto-traits/issue-23080.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / auto-traits / issue-23080.stderr
1 error[E0380]: auto traits cannot have associated items
2   --> $DIR/issue-23080.rs:5:8
3    |
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
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0380`.