Clean up E0192 explanation

This commit is contained in:
Guillaume Gomez 2020-01-13 13:34:55 +01:00
parent 11f74189f1
commit 3ec0a84e6e

View file

@ -1,3 +1,19 @@
A negative impl was added on a trait implementation.
Erroneous code example:
```compile_fail,E0192
trait Trait {
type Bar;
}
struct Foo;
impl !Trait for Foo { } //~ ERROR E0192
fn main() {}
```
Negative impls are only allowed for auto traits. For more
information see the [opt-in builtin traits RFC][RFC 19].