]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0025, E0034, E0044, E0046 and E0053
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 15 Nov 2019 12:05:21 +0000 (13:05 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 15 Nov 2019 12:24:47 +0000 (13:24 +0100)
src/librustc_error_codes/error_codes/E0025.md
src/librustc_error_codes/error_codes/E0034.md
src/librustc_error_codes/error_codes/E0044.md
src/librustc_error_codes/error_codes/E0046.md
src/librustc_error_codes/error_codes/E0053.md

index 51073babd01de112ecf4cee325dda7e8905b52e9..a85dc8c1978b2145cfb7ce8ba34bf6d6437f4251 100644 (file)
@@ -1,5 +1,6 @@
-Each field of a struct can only be bound once in a pattern. Erroneous code
-example:
+Each field of a struct can only be bound once in a pattern.
+
+Erroneous code example:
 
 ```compile_fail,E0025
 struct Foo {
index bc804b7faefca52912316adf650169f012d08d2f..2a21f3441c660fd5dfd039c431b9542b5296b744 100644 (file)
@@ -1,5 +1,7 @@
 The compiler doesn't know what method to call because more than one method
-has the same prototype. Erroneous code example:
+has the same prototype.
+
+Erroneous code example:
 
 ```compile_fail,E0034
 struct Test;
index 8e877e718599757990c1ee22da3f2c892cdadbca..635ff95329013a00b5789ec2c0fdc4f3bee9aab7 100644 (file)
@@ -1,4 +1,5 @@
 You cannot use type or const parameters on foreign items.
+
 Example of erroneous code:
 
 ```compile_fail,E0044
index 2d0bb0863e8831d6a642cb7b15861df34bea702f..d8f95330c364bd032ee07613cb5d7180b1fc6a1d 100644 (file)
@@ -1,4 +1,6 @@
-Items are missing in a trait implementation. Erroneous code example:
+Items are missing in a trait implementation.
+
+Erroneous code example:
 
 ```compile_fail,E0046
 trait Foo {
index 822d1f0094d3603b26fb63d33b3a39af25709a25..cb2a8638a29c538ff3771deeef800cb8772989ea 100644 (file)
@@ -1,7 +1,7 @@
 The parameters of any trait method must match between a trait implementation
 and the trait definition.
 
-Here are a couple examples of this error:
+Erroneous code example:
 
 ```compile_fail,E0053
 trait Foo {