@@ -2,55 +2,67 @@ error[E0308]: mismatched types
2
2
--> $DIR/structure-constructor-type-mismatch.rs:17:12
3
3
|
4
4
LL | 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
+ | ++
9
11
10
12
error[E0308]: mismatched types
11
13
--> $DIR/structure-constructor-type-mismatch.rs:20:12
12
14
|
13
15
LL | 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
+ | ++
18
22
19
23
error[E0308]: mismatched types
20
24
--> $DIR/structure-constructor-type-mismatch.rs:26:12
21
25
|
22
26
LL | 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
+ | ++
27
33
28
34
error[E0308]: mismatched types
29
35
--> $DIR/structure-constructor-type-mismatch.rs:29:12
30
36
|
31
37
LL | 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
+ | ++
36
44
37
45
error[E0308]: mismatched types
38
46
--> $DIR/structure-constructor-type-mismatch.rs:35:12
39
47
|
40
48
LL | 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
+ | ++
45
55
46
56
error[E0308]: mismatched types
47
57
--> $DIR/structure-constructor-type-mismatch.rs:42:12
48
58
|
49
59
LL | 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
+ | ++
54
66
55
67
error[E0107]: type alias takes 0 generic arguments but 1 generic argument was supplied
56
68
--> $DIR/structure-constructor-type-mismatch.rs:48:15
@@ -70,19 +82,23 @@ error[E0308]: mismatched types
70
82
--> $DIR/structure-constructor-type-mismatch.rs:49:12
71
83
|
72
84
LL | 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
+ | ++
77
91
78
92
error[E0308]: mismatched types
79
93
--> $DIR/structure-constructor-type-mismatch.rs:50:12
80
94
|
81
95
LL | 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
+ | ++
86
102
87
103
error[E0107]: type alias takes 0 generic arguments but 1 generic argument was supplied
88
104
--> $DIR/structure-constructor-type-mismatch.rs:54:9
0 commit comments