error[E0380]: auto traits cannot have methods or associated items
- --> $DIR/issue-23080.rs:3:1
+ --> $DIR/issue-23080.rs:4:8
|
-LL | / unsafe auto trait Trait {
-LL | |
-LL | | fn method(&self) {
-LL | | println!("Hello");
-LL | | }
-LL | | }
- | |_^
+LL | unsafe auto trait Trait {
+ | ----- auto trait cannot have items
+LL | fn method(&self) {
+ | ^^^^^^
error: aborting due to previous error