fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
964 B25 linesraw
1error: floating-point types cannot be used in patterns
2  --> $DIR/issue-6804.rs:11:9
3   |
4LL |         NAN => {},
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>
9note: the lint level is defined here
10  --> $DIR/issue-6804.rs:4:9
11   |
12LL | #![deny(illegal_floating_point_literal_pattern)]
13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: floating-point types cannot be used in patterns
16  --> $DIR/issue-6804.rs:17: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: aborting due to 2 previous errors
25