fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.7 KiB43 linesraw
1error: floating-point types cannot be used in patterns
2  --> $DIR/issue-6804.rs:11:9
3   |
4LL |         NAN => {},
5   |         ^^^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-6804.rs:4:9
9   |
10LL | #![deny(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
16  --> $DIR/issue-6804.rs:19:10
17   |
18LL |         [NAN, _] => {},
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
25  --> $DIR/issue-6804.rs:11:9
26   |
27LL |         NAN => {},
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
34  --> $DIR/issue-6804.rs:19:10
35   |
36LL |         [NAN, _] => {},
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: aborting due to 4 previous errors
43