fda3378e3f
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
12 lines
345 B
Plaintext
12 lines
345 B
Plaintext
error[E0380]: auto traits cannot have methods or associated items
|
|
--> $DIR/issue-23080.rs:5:8
|
|
|
|
|
LL | unsafe auto trait Trait {
|
|
| ----- auto trait cannot have items
|
|
LL | fn method(&self) {
|
|
| ^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0380`.
|