1 error: floating-point types cannot be used in patterns
2 --> $DIR/issue-41255.rs:11:9
7 note: lint level defined here
8 --> $DIR/issue-41255.rs:6:11
10 LL | #![forbid(illegal_floating_point_literal_pattern)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
15 error: floating-point types cannot be used in patterns
16 --> $DIR/issue-41255.rs:15:9
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
24 error: floating-point types cannot be used in patterns
25 --> $DIR/issue-41255.rs:19:10
30 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
33 error: floating-point types cannot be used in patterns
34 --> $DIR/issue-41255.rs:23:9
36 LL | 1.0 .. 33.0 => {},
39 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
42 error: floating-point types cannot be used in patterns
43 --> $DIR/issue-41255.rs:23:16
45 LL | 1.0 .. 33.0 => {},
48 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
49 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
51 error: floating-point types cannot be used in patterns
52 --> $DIR/issue-41255.rs:31:9
54 LL | 39.0 ..= 70.0 => {},
57 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
58 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
60 error: floating-point types cannot be used in patterns
61 --> $DIR/issue-41255.rs:31:18
63 LL | 39.0 ..= 70.0 => {},
66 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
67 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
69 error: floating-point types cannot be used in patterns
70 --> $DIR/issue-41255.rs:40:11
75 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
76 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
78 error: floating-point types cannot be used in patterns
79 --> $DIR/issue-41255.rs:45:12
84 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
85 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
87 error: floating-point types cannot be used in patterns
88 --> $DIR/issue-41255.rs:50:9
93 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
94 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
96 error: floating-point types cannot be used in patterns
97 --> $DIR/issue-41255.rs:60:10
102 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
103 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
105 error: floating-point types cannot be used in patterns
106 --> $DIR/issue-41255.rs:69:18
108 LL | Foo { x: 2.0 } => {},
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 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
114 error: floating-point types cannot be used in patterns
115 --> $DIR/issue-41255.rs:11:9
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>
123 error: floating-point types cannot be used in patterns
124 --> $DIR/issue-41255.rs:15:9
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>
132 error: floating-point types cannot be used in patterns
133 --> $DIR/issue-41255.rs:19:10
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>
141 error: floating-point types cannot be used in patterns
142 --> $DIR/issue-41255.rs:23:9
144 LL | 1.0 .. 33.0 => {},
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>
150 error: floating-point types cannot be used in patterns
151 --> $DIR/issue-41255.rs:23:16
153 LL | 1.0 .. 33.0 => {},
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>
159 error: floating-point types cannot be used in patterns
160 --> $DIR/issue-41255.rs:31:9
162 LL | 39.0 ..= 70.0 => {},
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>
168 error: floating-point types cannot be used in patterns
169 --> $DIR/issue-41255.rs:31:18
171 LL | 39.0 ..= 70.0 => {},
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>
177 error: floating-point types cannot be used in patterns
178 --> $DIR/issue-41255.rs:40:11
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>
186 error: floating-point types cannot be used in patterns
187 --> $DIR/issue-41255.rs:45:12
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>
195 error: floating-point types cannot be used in patterns
196 --> $DIR/issue-41255.rs:50:9
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>
204 error: floating-point types cannot be used in patterns
205 --> $DIR/issue-41255.rs:60:10
207 LL | (3.14, 1) => {},
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>
213 error: floating-point types cannot be used in patterns
214 --> $DIR/issue-41255.rs:69:18
216 LL | Foo { x: 2.0 } => {},
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>
222 error: aborting due to 24 previous errors