]> git.lizzy.rs Git - rust.git/commitdiff
Add E0109 error explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 27 Jun 2015 12:23:53 +0000 (14:23 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 27 Jun 2015 12:23:53 +0000 (14:23 +0200)
src/librustc/diagnostics.rs

index 034d3ee1604a041f954f75edadb798a9cd2d38f7..b15bcb7b75862c7a115d0560db0373652e53625c 100644 (file)
@@ -360,6 +360,22 @@ enum Enum {
 http://doc.rust-lang.org/reference.html#ffi-attributes
 "##,
 
+E0109: r##"
+You tried to give type parameter to a type which doesn't need it. Erroneous
+code example:
+
+```
+type X = u32<i32>; // error: type parameters are not allowed on this type
+```
+
+Please check you actually used the good type or check again its definition.
+Example:
+
+```
+type X = u32; // ok!
+```
+"##,
+
 E0133: r##"
 Using unsafe functionality, such as dereferencing raw pointers and calling
 functions via FFI or marked as unsafe, is potentially dangerous and disallowed
@@ -1055,7 +1071,6 @@ fn bar(&self) -> i32 { self.0 }
     E0017,
     E0022,
     E0038,
-    E0109,
     E0110,
     E0134,
     E0135,