Skip to content

Commit 35b51bf

Browse files
---
yaml --- r: 223383 b: refs/heads/beta c: d73cc56 h: refs/heads/master i: 223381: 62a1c7b 223379: 29f6468 223375: 6cc398b v: v3
1 parent 94624a9 commit 35b51bf

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 0d74311e2baa73d883aec065dd300d48d34a0158
26+
refs/heads/beta: d73cc565656c76cb5270934caaafa78760cc565b
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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)