@@ -13,7 +13,7 @@ LL | #![forbid(illegal_floating_point_literal_pattern)]
13
13
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
14
14
15
15
error: floating-point types cannot be used in patterns
16
- --> $DIR/issue-41255.rs:15 :9
16
+ --> $DIR/issue-41255.rs:13 :9
17
17
|
18
18
LL | 5.0f32 => {},
19
19
| ^^^^^^
@@ -22,7 +22,7 @@ LL | 5.0f32 => {},
22
22
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
23
23
24
24
error: floating-point types cannot be used in patterns
25
- --> $DIR/issue-41255.rs:19 :10
25
+ --> $DIR/issue-41255.rs:15 :10
26
26
|
27
27
LL | -5.0 => {},
28
28
| ^^^
@@ -31,7 +31,7 @@ LL | -5.0 => {},
31
31
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
32
32
33
33
error: floating-point types cannot be used in patterns
34
- --> $DIR/issue-41255.rs:23 :9
34
+ --> $DIR/issue-41255.rs:17 :9
35
35
|
36
36
LL | 1.0 .. 33.0 => {},
37
37
| ^^^
@@ -40,7 +40,7 @@ LL | 1.0 .. 33.0 => {},
40
40
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
41
41
42
42
error: floating-point types cannot be used in patterns
43
- --> $DIR/issue-41255.rs:23 :16
43
+ --> $DIR/issue-41255.rs:17 :16
44
44
|
45
45
LL | 1.0 .. 33.0 => {},
46
46
| ^^^^
@@ -49,7 +49,7 @@ LL | 1.0 .. 33.0 => {},
49
49
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
50
50
51
51
error: floating-point types cannot be used in patterns
52
- --> $DIR/issue-41255.rs:31 :9
52
+ --> $DIR/issue-41255.rs:21 :9
53
53
|
54
54
LL | 39.0 ..= 70.0 => {},
55
55
| ^^^^
@@ -58,7 +58,7 @@ LL | 39.0 ..= 70.0 => {},
58
58
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
59
59
60
60
error: floating-point types cannot be used in patterns
61
- --> $DIR/issue-41255.rs:31 :18
61
+ --> $DIR/issue-41255.rs:21 :18
62
62
|
63
63
LL | 39.0 ..= 70.0 => {},
64
64
| ^^^^
@@ -67,7 +67,7 @@ LL | 39.0 ..= 70.0 => {},
67
67
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
68
68
69
69
error: floating-point types cannot be used in patterns
70
- --> $DIR/issue-41255.rs:40 :11
70
+ --> $DIR/issue-41255.rs:26 :11
71
71
|
72
72
LL | ..71.0 => {}
73
73
| ^^^^
@@ -76,7 +76,7 @@ LL | ..71.0 => {}
76
76
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
77
77
78
78
error: floating-point types cannot be used in patterns
79
- --> $DIR/issue-41255.rs:45 :12
79
+ --> $DIR/issue-41255.rs:29 :12
80
80
|
81
81
LL | ..=72.0 => {}
82
82
| ^^^^
@@ -85,7 +85,7 @@ LL | ..=72.0 => {}
85
85
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
86
86
87
87
error: floating-point types cannot be used in patterns
88
- --> $DIR/issue-41255.rs:50 :9
88
+ --> $DIR/issue-41255.rs:32 :9
89
89
|
90
90
LL | 71.0.. => {}
91
91
| ^^^^
@@ -94,7 +94,7 @@ LL | 71.0.. => {}
94
94
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
95
95
96
96
error: floating-point types cannot be used in patterns
97
- --> $DIR/issue-41255.rs:60 :10
97
+ --> $DIR/issue-41255.rs:40 :10
98
98
|
99
99
LL | (3.14, 1) => {},
100
100
| ^^^^
@@ -103,121 +103,13 @@ LL | (3.14, 1) => {},
103
103
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
104
104
105
105
error: floating-point types cannot be used in patterns
106
- --> $DIR/issue-41255.rs:69 :18
106
+ --> $DIR/issue-41255.rs:47 :18
107
107
|
108
108
LL | Foo { x: 2.0 } => {},
109
109
| ^^^
110
110
|
111
111
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112
112
= note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
113
113
114
- error: floating-point types cannot be used in patterns
115
- --> $DIR/issue-41255.rs:11:9
116
- |
117
- LL | 5.0 => {},
118
- | ^^^
119
- |
120
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
121
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
122
-
123
- error: floating-point types cannot be used in patterns
124
- --> $DIR/issue-41255.rs:15:9
125
- |
126
- LL | 5.0f32 => {},
127
- | ^^^^^^
128
- |
129
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
130
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
131
-
132
- error: floating-point types cannot be used in patterns
133
- --> $DIR/issue-41255.rs:19:10
134
- |
135
- LL | -5.0 => {},
136
- | ^^^
137
- |
138
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
139
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
140
-
141
- error: floating-point types cannot be used in patterns
142
- --> $DIR/issue-41255.rs:23:9
143
- |
144
- LL | 1.0 .. 33.0 => {},
145
- | ^^^
146
- |
147
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
149
-
150
- error: floating-point types cannot be used in patterns
151
- --> $DIR/issue-41255.rs:23:16
152
- |
153
- LL | 1.0 .. 33.0 => {},
154
- | ^^^^
155
- |
156
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
158
-
159
- error: floating-point types cannot be used in patterns
160
- --> $DIR/issue-41255.rs:31:9
161
- |
162
- LL | 39.0 ..= 70.0 => {},
163
- | ^^^^
164
- |
165
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
167
-
168
- error: floating-point types cannot be used in patterns
169
- --> $DIR/issue-41255.rs:31:18
170
- |
171
- LL | 39.0 ..= 70.0 => {},
172
- | ^^^^
173
- |
174
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
176
-
177
- error: floating-point types cannot be used in patterns
178
- --> $DIR/issue-41255.rs:40:11
179
- |
180
- LL | ..71.0 => {}
181
- | ^^^^
182
- |
183
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
185
-
186
- error: floating-point types cannot be used in patterns
187
- --> $DIR/issue-41255.rs:45:12
188
- |
189
- LL | ..=72.0 => {}
190
- | ^^^^
191
- |
192
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
193
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
194
-
195
- error: floating-point types cannot be used in patterns
196
- --> $DIR/issue-41255.rs:50:9
197
- |
198
- LL | 71.0.. => {}
199
- | ^^^^
200
- |
201
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
203
-
204
- error: floating-point types cannot be used in patterns
205
- --> $DIR/issue-41255.rs:60:10
206
- |
207
- LL | (3.14, 1) => {},
208
- | ^^^^
209
- |
210
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
211
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
212
-
213
- error: floating-point types cannot be used in patterns
214
- --> $DIR/issue-41255.rs:69:18
215
- |
216
- LL | Foo { x: 2.0 } => {},
217
- | ^^^
218
- |
219
- = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
220
- = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
221
-
222
- error: aborting due to 24 previous errors
114
+ error: aborting due to 12 previous errors
223
115
0 commit comments