We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec23f4e commit a2d7c33Copy full SHA for a2d7c33
src/librustc_error_codes/error_codes/E0749.md
@@ -11,10 +11,20 @@ trait MyTrait {
11
impl !MyTrait for u32 {
12
type Foo = i32; // error!
13
}
14
-// impl !MyTrait for u32 {} // fix
15
# fn main() {}
16
```
17
18
Negative impls are not allowed to have any items. Negative impls declare that a
19
trait is **not** implemented (and never will be) and hence there is no need to
20
specify the values for trait methods or other items.
+
21
+One way to fix this is to remove the items in negative impls.
22
23
+```
24
+# #![feature(negative_impls)]
25
+trait MyTrait {
26
+ type Foo;
27
+}
28
29
+impl !MyTrait for u32 {}
30
0 commit comments