about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-08-12 14:15:44 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-08-12 14:15:44 +0200
commitd0704d5d367f85843a61db71da4edde25378a197 (patch)
treec643d011b6b35cba425964c92adb39ab742dd147 /src/librustc_error_codes/error_codes
parent441fd2255763c2aeea616aeac61b2c795a4c5330 (diff)
downloadrust-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.md6
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!