Skip to content

Commit a62dd23

Browse files
authored
Rollup merge of #75451 - GuillaumeGomez:cleanup-e0751, r=pickfire
Clean up E0751 explanation r? @Dylan-DPC cc @pickfire
2 parents 845fb94 + f11b2e5 commit a62dd23

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-3
lines changed

src/librustc_error_codes/error_codes/E0751.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Erroneous code example:
55
```compile_fail,E0751
66
trait MyTrait {}
77
impl MyTrait for i32 { }
8-
impl !MyTrait for i32 { }
8+
impl !MyTrait for i32 { } // error!
99
```
1010

11-
Negative implementations are a promise that the trait will never be
12-
implemented for the given types.
11+
Negative implementations are a promise that the trait will never be implemented
12+
for the given types. Therefore, both cannot exists at the same time.

0 commit comments

Comments
 (0)