]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-41255.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / issue-41255.stderr
1 error: floating-point types cannot be used in patterns
2   --> $DIR/issue-41255.rs:10:9
3    |
4 LL |         5.0 => {},
5    |         ^^^
6    |
7    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8    = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620>
9 note: the lint level is defined here
10   --> $DIR/issue-41255.rs:5:11
11    |
12 LL | #![forbid(illegal_floating_point_literal_pattern)]
13    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: floating-point types cannot be used in patterns
16   --> $DIR/issue-41255.rs:12:9
17    |
18 LL |         5.0f32 => {},
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
25   --> $DIR/issue-41255.rs:14:10
26    |
27 LL |         -5.0 => {},
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
34   --> $DIR/issue-41255.rs:16:9
35    |
36 LL |         1.0 .. 33.0 => {},
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
43   --> $DIR/issue-41255.rs:16:16
44    |
45 LL |         1.0 .. 33.0 => {},
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
52   --> $DIR/issue-41255.rs:20:9
53    |
54 LL |         39.0 ..= 70.0 => {},
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
61   --> $DIR/issue-41255.rs:20:18
62    |
63 LL |         39.0 ..= 70.0 => {},
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
70   --> $DIR/issue-41255.rs:25:11
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
79   --> $DIR/issue-41255.rs:28:12
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
88   --> $DIR/issue-41255.rs:31:9
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
97   --> $DIR/issue-41255.rs:39:10
98    |
99 LL |         (3.14, 1) => {},
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
106   --> $DIR/issue-41255.rs:46:18
107    |
108 LL |         Foo { x: 2.0 } => {},
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
114 error: aborting due to 12 previous errors
115