]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error: floating-point types cannot be used in patterns |
dfeec247 | 2 | --> $DIR/issue-41255.rs:11:9 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | 5.0 => {}, |
8faf50e0 XL |
5 | | ^^^ |
6 | | | |
74b04a01 | 7 | note: the lint level is defined here |
dfeec247 | 8 | --> $DIR/issue-41255.rs:6:11 |
8faf50e0 XL |
9 | | |
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> | |
14 | ||
15 | error: floating-point types cannot be used in patterns | |
136023e0 | 16 | --> $DIR/issue-41255.rs:13:9 |
8faf50e0 | 17 | | |
532ac7d7 | 18 | LL | 5.0f32 => {}, |
8faf50e0 XL |
19 | | ^^^^^^ |
20 | | | |
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> | |
23 | ||
24 | error: floating-point types cannot be used in patterns | |
136023e0 | 25 | --> $DIR/issue-41255.rs:15:10 |
8faf50e0 | 26 | | |
532ac7d7 | 27 | LL | -5.0 => {}, |
8faf50e0 XL |
28 | | ^^^ |
29 | | | |
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> | |
32 | ||
33 | error: floating-point types cannot be used in patterns | |
136023e0 | 34 | --> $DIR/issue-41255.rs:17:9 |
8faf50e0 | 35 | | |
532ac7d7 | 36 | LL | 1.0 .. 33.0 => {}, |
8faf50e0 XL |
37 | | ^^^ |
38 | | | |
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> | |
41 | ||
42 | error: floating-point types cannot be used in patterns | |
136023e0 | 43 | --> $DIR/issue-41255.rs:17:16 |
8faf50e0 | 44 | | |
532ac7d7 | 45 | LL | 1.0 .. 33.0 => {}, |
8faf50e0 XL |
46 | | ^^^^ |
47 | | | |
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> | |
50 | ||
51 | error: floating-point types cannot be used in patterns | |
136023e0 | 52 | --> $DIR/issue-41255.rs:21:9 |
8faf50e0 | 53 | | |
532ac7d7 | 54 | LL | 39.0 ..= 70.0 => {}, |
8faf50e0 XL |
55 | | ^^^^ |
56 | | | |
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> | |
59 | ||
60 | error: floating-point types cannot be used in patterns | |
136023e0 | 61 | --> $DIR/issue-41255.rs:21:18 |
8faf50e0 | 62 | | |
532ac7d7 | 63 | LL | 39.0 ..= 70.0 => {}, |
8faf50e0 XL |
64 | | ^^^^ |
65 | | | |
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> | |
68 | ||
69 | error: floating-point types cannot be used in patterns | |
136023e0 | 70 | --> $DIR/issue-41255.rs:26:11 |
dfeec247 XL |
71 | | |
72 | LL | ..71.0 => {} | |
73 | | ^^^^ | |
74 | | | |
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> | |
77 | ||
78 | error: floating-point types cannot be used in patterns | |
136023e0 | 79 | --> $DIR/issue-41255.rs:29:12 |
dfeec247 XL |
80 | | |
81 | LL | ..=72.0 => {} | |
82 | | ^^^^ | |
83 | | | |
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> | |
86 | ||
87 | error: floating-point types cannot be used in patterns | |
136023e0 | 88 | --> $DIR/issue-41255.rs:32:9 |
dfeec247 XL |
89 | | |
90 | LL | 71.0.. => {} | |
91 | | ^^^^ | |
92 | | | |
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> | |
95 | ||
96 | error: floating-point types cannot be used in patterns | |
136023e0 | 97 | --> $DIR/issue-41255.rs:40:10 |
8faf50e0 | 98 | | |
532ac7d7 | 99 | LL | (3.14, 1) => {}, |
8faf50e0 XL |
100 | | ^^^^ |
101 | | | |
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> | |
104 | ||
105 | error: floating-point types cannot be used in patterns | |
136023e0 | 106 | --> $DIR/issue-41255.rs:47:18 |
8faf50e0 | 107 | | |
532ac7d7 | 108 | LL | Foo { x: 2.0 } => {}, |
8faf50e0 XL |
109 | | ^^^ |
110 | | | |
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> | |
113 | ||
136023e0 | 114 | error: aborting due to 12 previous errors |
8faf50e0 | 115 |