Add missing E0192 in the error code listing

This commit is contained in:
Guillaume Gomez
2022-02-11 12:06:55 +01:00
parent 9322d099af
commit 087fb23dc9
2 changed files with 5 additions and 3 deletions

View File

@@ -1,15 +1,17 @@
#### Note: this error code is no longer emitted by the compiler.
A negative impl was added on a trait implementation.
Erroneous code example:
```compile_fail,E0192
```compile_fail
trait Trait {
type Bar;
}
struct Foo;
impl !Trait for Foo { } //~ ERROR E0192
impl !Trait for Foo { } //~ ERROR
fn main() {}
```