Skip to content
Permalink
Browse files

Clean up E0192 explanation

  • Loading branch information
GuillaumeGomez committed Jan 13, 2020
1 parent 11f7418 commit 3ec0a84e6ef35f58c837a0afbcf02b70ee543459
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/librustc_error_codes/error_codes/E0192.md
@@ -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].

0 comments on commit 3ec0a84

Please sign in to comment.
You can’t perform that action at this time.