]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | type Real = double; |
2 | //~^ ERROR cannot find type `double` in this scope | |
3 | //~| HELP perhaps you intended to use this type | |
4 | ||
5 | fn main() { | |
6 | let x: Real = 3.5; | |
7 | let y: long = 74802374902374923; | |
8 | //~^ ERROR cannot find type `long` in this scope | |
9 | //~| HELP perhaps you intended to use this type | |
064997fb FG |
10 | let v1: Boolean = true; |
11 | //~^ ERROR: cannot find type `Boolean` in this scope [E0412] | |
12 | //~| HELP perhaps you intended to use this type | |
13 | let v2: Bool = true; | |
14 | //~^ ERROR: cannot find type `Bool` in this scope [E0412] | |
15 | //~| HELP a builtin type with a similar name exists | |
16 | //~| HELP perhaps you intended to use this type | |
6a06907d XL |
17 | } |
18 | ||
19 | fn z(a: boolean) { | |
20 | //~^ ERROR cannot find type `boolean` in this scope | |
21 | //~| HELP perhaps you intended to use this type | |
22 | } | |
23 | ||
24 | fn a() -> byte { | |
25 | //~^ ERROR cannot find type `byte` in this scope | |
26 | //~| HELP perhaps you intended to use this type | |
27 | 3 | |
28 | } | |
29 | ||
30 | struct Data { //~ HELP you might be missing a type parameter | |
31 | width: float, | |
32 | //~^ ERROR cannot find type `float` in this scope | |
33 | //~| HELP perhaps you intended to use this type | |
34 | depth: Option<int>, | |
35 | //~^ ERROR cannot find type `int` in this scope | |
36 | //~| HELP perhaps you intended to use this type | |
37 | } | |
38 | ||
39 | trait Stuff {} | |
40 | impl Stuff for short {} | |
41 | //~^ ERROR cannot find type `short` in this scope | |
42 | //~| HELP perhaps you intended to use this type |