Skip to content

Commit d73cc56

Browse files
Add E0109 error explanation
1 parent 0d74311 commit d73cc56

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,22 @@ integer type:
360360
http://doc.rust-lang.org/reference.html#ffi-attributes
361361
"##,
362362

363+
E0109: r##"
364+
You tried to give type parameter to a type which doesn't need it. Erroneous
365+
code example:
366+
367+
```
368+
type X = u32<i32>; // error: type parameters are not allowed on this type
369+
```
370+
371+
Please check you actually used the good type or check again its definition.
372+
Example:
373+
374+
```
375+
type X = u32; // ok!
376+
```
377+
"##,
378+
363379
E0133: r##"
364380
Using unsafe functionality, such as dereferencing raw pointers and calling
365381
functions via FFI or marked as unsafe, is potentially dangerous and disallowed
@@ -1055,7 +1071,6 @@ register_diagnostics! {
10551071
E0017,
10561072
E0022,
10571073
E0038,
1058-
E0109,
10591074
E0110,
10601075
E0134,
10611076
E0135,

0 commit comments

Comments
 (0)