@@ -2,55 +2,67 @@ error[E0308]: mismatched types
22 --> $DIR/structure-constructor-type-mismatch.rs:17:12
33 |
44LL | x: 1,
5- | ^
6- | |
7- | expected `f32`, found integer
8- | help: use a float literal: `1.0`
5+ | ^ expected `f32`, found integer
6+ |
7+ help: use a float literal
8+ |
9+ LL | x: 1.0,
10+ | ++
911
1012error[E0308]: mismatched types
1113 --> $DIR/structure-constructor-type-mismatch.rs:20:12
1214 |
1315LL | y: 2,
14- | ^
15- | |
16- | expected `f32`, found integer
17- | help: use a float literal: `2.0`
16+ | ^ expected `f32`, found integer
17+ |
18+ help: use a float literal
19+ |
20+ LL | y: 2.0,
21+ | ++
1822
1923error[E0308]: mismatched types
2024 --> $DIR/structure-constructor-type-mismatch.rs:26:12
2125 |
2226LL | x: 3,
23- | ^
24- | |
25- | expected `f32`, found integer
26- | help: use a float literal: `3.0`
27+ | ^ expected `f32`, found integer
28+ |
29+ help: use a float literal
30+ |
31+ LL | x: 3.0,
32+ | ++
2733
2834error[E0308]: mismatched types
2935 --> $DIR/structure-constructor-type-mismatch.rs:29:12
3036 |
3137LL | y: 4,
32- | ^
33- | |
34- | expected `f32`, found integer
35- | help: use a float literal: `4.0`
38+ | ^ expected `f32`, found integer
39+ |
40+ help: use a float literal
41+ |
42+ LL | y: 4.0,
43+ | ++
3644
3745error[E0308]: mismatched types
3846 --> $DIR/structure-constructor-type-mismatch.rs:35:12
3947 |
4048LL | x: 5,
41- | ^
42- | |
43- | expected `f32`, found integer
44- | help: use a float literal: `5.0`
49+ | ^ expected `f32`, found integer
50+ |
51+ help: use a float literal
52+ |
53+ LL | x: 5.0,
54+ | ++
4555
4656error[E0308]: mismatched types
4757 --> $DIR/structure-constructor-type-mismatch.rs:42:12
4858 |
4959LL | x: 7,
50- | ^
51- | |
52- | expected `f32`, found integer
53- | help: use a float literal: `7.0`
60+ | ^ expected `f32`, found integer
61+ |
62+ help: use a float literal
63+ |
64+ LL | x: 7.0,
65+ | ++
5466
5567error[E0107]: type alias takes 0 generic arguments but 1 generic argument was supplied
5668 --> $DIR/structure-constructor-type-mismatch.rs:48:15
@@ -70,19 +82,23 @@ error[E0308]: mismatched types
7082 --> $DIR/structure-constructor-type-mismatch.rs:49:12
7183 |
7284LL | x: 9,
73- | ^
74- | |
75- | expected `f32`, found integer
76- | help: use a float literal: `9.0`
85+ | ^ expected `f32`, found integer
86+ |
87+ help: use a float literal
88+ |
89+ LL | x: 9.0,
90+ | ++
7791
7892error[E0308]: mismatched types
7993 --> $DIR/structure-constructor-type-mismatch.rs:50:12
8094 |
8195LL | y: 10,
82- | ^^
83- | |
84- | expected `f32`, found integer
85- | help: use a float literal: `10.0`
96+ | ^^ expected `f32`, found integer
97+ |
98+ help: use a float literal
99+ |
100+ LL | y: 10.0,
101+ | ++
86102
87103error[E0107]: type alias takes 0 generic arguments but 1 generic argument was supplied
88104 --> $DIR/structure-constructor-type-mismatch.rs:54:9
0 commit comments