]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0380.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0380.md
1 An auto trait was declared with a method or an associated item.
2
3 Erroneous code example:
4
5 ```compile_fail,E0380
6 unsafe auto trait Trait {
7     type Output; // error!
8 }
9 ```
10
11 Auto traits cannot have methods or associated items. For more information see
12 the [opt-in builtin traits RFC][RFC 19].
13
14 [RFC 19]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md