blob: 638f0c8ecc65f3260be6e80ab5c2eb30ea8e9e97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
An auto trait was declared with a method or an associated item.
Erroneous code example:
```compile_fail,E0380
unsafe auto trait Trait {
type Output; // error!
}
```
Auto traits cannot have methods or associated items. For more information see
the [opt-in builtin traits RFC][RFC 19].
[RFC 19]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
|