We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f7418 commit 3ec0a84Copy full SHA for 3ec0a84
src/librustc_error_codes/error_codes/E0192.md
@@ -1,3 +1,19 @@
1
+A negative impl was added on a trait implementation.
2
+
3
+Erroneous code example:
4
5
+```compile_fail,E0192
6
+trait Trait {
7
+ type Bar;
8
+}
9
10
+struct Foo;
11
12
+impl !Trait for Foo { } //~ ERROR E0192
13
14
+fn main() {}
15
+```
16
17
Negative impls are only allowed for auto traits. For more
18
information see the [opt-in builtin traits RFC][RFC 19].
19
0 commit comments