Skip to content

Commit ee73fd5

Browse files
---
yaml --- r: 227895 b: refs/heads/try c: d73cc56 h: refs/heads/master i: 227893: e90585b 227891: d9553bb 227887: d73240c v: v3
1 parent 6c70909 commit ee73fd5

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 0d74311e2baa73d883aec065dd300d48d34a0158
4+
refs/heads/try: d73cc565656c76cb5270934caaafa78760cc565b
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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