diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-12 14:15:44 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-08-12 14:15:44 +0200 |
| commit | d0704d5d367f85843a61db71da4edde25378a197 (patch) | |
| tree | c643d011b6b35cba425964c92adb39ab742dd147 /src/librustc_error_codes/error_codes | |
| parent | 441fd2255763c2aeea616aeac61b2c795a4c5330 (diff) | |
| download | rust-d0704d5d367f85843a61db71da4edde25378a197.tar.gz rust-d0704d5d367f85843a61db71da4edde25378a197.zip | |
Clean up E0751 explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0751.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0751.md b/src/librustc_error_codes/error_codes/E0751.md index 809b888d92a..212c8674304 100644 --- a/src/librustc_error_codes/error_codes/E0751.md +++ b/src/librustc_error_codes/error_codes/E0751.md @@ -5,8 +5,8 @@ Erroneous code example: ```compile_fail,E0751 trait MyTrait {} impl MyTrait for i32 { } -impl !MyTrait for i32 { } +impl !MyTrait for i32 { } // error! ``` -Negative implementations are a promise that the trait will never be -implemented for the given types. +Negative implementations are a promise that the trait will never be implemented +for the given types. Therefore, you can't have both at the same time! |
