diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-27 14:23:53 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-27 14:23:53 +0200 |
| commit | d73cc565656c76cb5270934caaafa78760cc565b (patch) | |
| tree | 4e72ed68e4d3527b617375eb12af07de83965210 /src | |
| parent | 0d74311e2baa73d883aec065dd300d48d34a0158 (diff) | |
| download | rust-d73cc565656c76cb5270934caaafa78760cc565b.tar.gz rust-d73cc565656c76cb5270934caaafa78760cc565b.zip | |
Add E0109 error explanation
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/diagnostics.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 034d3ee1604..b15bcb7b758 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -360,6 +360,22 @@ integer type: 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 @@ register_diagnostics! { E0017, E0022, E0038, - E0109, E0110, E0134, E0135, |
