]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-41255.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-41255.stderr
CommitLineData
8faf50e0 1error: floating-point types cannot be used in patterns
dfeec247 2 --> $DIR/issue-41255.rs:11:9
8faf50e0 3 |
532ac7d7 4LL | 5.0 => {},
8faf50e0
XL
5 | ^^^
6 |
74b04a01 7note: the lint level is defined here
dfeec247 8 --> $DIR/issue-41255.rs:6:11
8faf50e0
XL
9 |
10LL | #![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
15error: floating-point types cannot be used in patterns
136023e0 16 --> $DIR/issue-41255.rs:13:9
8faf50e0 17 |
532ac7d7 18LL | 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
24error: floating-point types cannot be used in patterns
136023e0 25 --> $DIR/issue-41255.rs:15:10
8faf50e0 26 |
532ac7d7 27LL | -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
33error: floating-point types cannot be used in patterns
136023e0 34 --> $DIR/issue-41255.rs:17:9
8faf50e0 35 |
532ac7d7 36LL | 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
42error: floating-point types cannot be used in patterns
136023e0 43 --> $DIR/issue-41255.rs:17:16
8faf50e0 44 |
532ac7d7 45LL | 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
51error: floating-point types cannot be used in patterns
136023e0 52 --> $DIR/issue-41255.rs:21:9
8faf50e0 53 |
532ac7d7 54LL | 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
60error: floating-point types cannot be used in patterns
136023e0 61 --> $DIR/issue-41255.rs:21:18
8faf50e0 62 |
532ac7d7 63LL | 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
69error: floating-point types cannot be used in patterns
136023e0 70 --> $DIR/issue-41255.rs:26:11
dfeec247
XL
71 |
72LL | ..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
78error: floating-point types cannot be used in patterns
136023e0 79 --> $DIR/issue-41255.rs:29:12
dfeec247
XL
80 |
81LL | ..=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
87error: floating-point types cannot be used in patterns
136023e0 88 --> $DIR/issue-41255.rs:32:9
dfeec247
XL
89 |
90LL | 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
96error: floating-point types cannot be used in patterns
136023e0 97 --> $DIR/issue-41255.rs:40:10
8faf50e0 98 |
532ac7d7 99LL | (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
105error: floating-point types cannot be used in patterns
136023e0 106 --> $DIR/issue-41255.rs:47:18
8faf50e0 107 |
532ac7d7 108LL | 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 114error: aborting due to 12 previous errors
8faf50e0 115