]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0192.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0192.md
CommitLineData
dfeec247
XL
1A negative impl was added on a trait implementation.
2
3Erroneous code example:
4
5```compile_fail,E0192
6trait Trait {
7 type Bar;
8}
9
10struct Foo;
11
12impl !Trait for Foo { } //~ ERROR E0192
13
14fn main() {}
15```
16
60c5eb7d
XL
17Negative impls are only allowed for auto traits. For more
18information see the [opt-in builtin traits RFC][RFC 19].
19
20[RFC 19]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md