1 error: floating-point types cannot be used in patterns
2 --> $DIR/issue-41255.rs:10:9
7 note: lint level defined here
8 --> $DIR/issue-41255.rs:5: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:12: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:14: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:16: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:16: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:20: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:20: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:29:10
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:36:18
81 LL | Foo { x: 2.0 } => {},
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: aborting due to 9 previous errors