File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
compiler/rustc_error_codes/src Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ E0184: include_str!("./error_codes/E0184.md"),
9797E0185 : include_str!( "./error_codes/E0185.md" ) ,
9898E0186 : include_str!( "./error_codes/E0186.md" ) ,
9999E0191 : include_str!( "./error_codes/E0191.md" ) ,
100+ E0192 : include_str!( "./error_codes/E0192.md" ) ,
100101E0193 : include_str!( "./error_codes/E0193.md" ) ,
101102E0195 : include_str!( "./error_codes/E0195.md" ) ,
102103E0197 : include_str!( "./error_codes/E0197.md" ) ,
@@ -522,7 +523,6 @@ E0787: include_str!("./error_codes/E0787.md"),
522523// E0188, // can not cast an immutable reference to a mutable pointer
523524// E0189, // deprecated: can only cast a boxed pointer to a boxed object
524525// E0190, // deprecated: can only cast a &-pointer to an &-object
525- // E0192, // negative impl only applicable to auto traits
526526// E0194, // merged into E0403
527527// E0196, // cannot determine a type for this closure
528528 E0208 ,
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
13A negative impl was added on a trait implementation.
24
35Erroneous code example:
46
5- ``` compile_fail,E0192
7+ ``` compile_fail
68trait Trait {
79 type Bar;
810}
911
1012struct Foo;
1113
12- impl !Trait for Foo { } //~ ERROR E0192
14+ impl !Trait for Foo { } //~ ERROR
1315
1416fn main() {}
1517```
You can’t perform that action at this time.
0 commit comments