about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-12-19 13:45:28 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-12-19 13:45:28 +0100
commit020be74f6bc5131b79a46d94a1111c35b187469a (patch)
tree29752548cf13a90e11d74d4b99a33ddb83b1925f
parent19bd93467617a447c22ec32cc1cf14d40cb84ccf (diff)
downloadrust-020be74f6bc5131b79a46d94a1111c35b187469a.tar.gz
rust-020be74f6bc5131b79a46d94a1111c35b187469a.zip
Clean up E0120 long explanation
-rw-r--r--src/librustc_error_codes/error_codes/E0120.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0120.md b/src/librustc_error_codes/error_codes/E0120.md
index 99c2a493a46..4861ed8e897 100644
--- a/src/librustc_error_codes/error_codes/E0120.md
+++ b/src/librustc_error_codes/error_codes/E0120.md
@@ -1,5 +1,7 @@
-An attempt was made to implement Drop on a trait, which is not allowed: only
-structs and enums can implement Drop. An example causing this error:
+The Drop was implemented on a trait, which is not allowed: only structs and
+enums can implement Drop.
+
+Erroneous code example:
 
 ```compile_fail,E0120
 trait MyTrait {}
@@ -10,7 +12,7 @@ impl Drop for MyTrait {
 ```
 
 A workaround for this problem is to wrap the trait up in a struct, and implement
-Drop on that. An example is shown below:
+Drop on that:
 
 ```
 trait MyTrait {}
@@ -22,7 +24,7 @@ impl <T: MyTrait> Drop for MyWrapper<T> {
 
 ```
 
-Alternatively, wrapping trait objects requires something like the following:
+Alternatively, wrapping trait objects requires something:
 
 ```
 trait MyTrait {}