Skip to content

Commit 087fb23

Browse files
Add missing E0192 in the error code listing
1 parent 9322d09 commit 087fb23

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

compiler/rustc_error_codes/src/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ E0184: include_str!("./error_codes/E0184.md"),
9797
E0185: include_str!("./error_codes/E0185.md"),
9898
E0186: include_str!("./error_codes/E0186.md"),
9999
E0191: include_str!("./error_codes/E0191.md"),
100+
E0192: include_str!("./error_codes/E0192.md"),
100101
E0193: include_str!("./error_codes/E0193.md"),
101102
E0195: include_str!("./error_codes/E0195.md"),
102103
E0197: 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,

compiler/rustc_error_codes/src/error_codes/E0192.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
A negative impl was added on a trait implementation.
24

35
Erroneous code example:
46

5-
```compile_fail,E0192
7+
```compile_fail
68
trait Trait {
79
type Bar;
810
}
911
1012
struct Foo;
1113
12-
impl !Trait for Foo { } //~ ERROR E0192
14+
impl !Trait for Foo { } //~ ERROR
1315
1416
fn main() {}
1517
```

0 commit comments

Comments
 (0)