Clean up E0192 explanation
This commit is contained in:
parent
11f74189f1
commit
3ec0a84e6e
1 changed files with 16 additions and 0 deletions
|
@ -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].
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue