]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6804.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-6804.stderr
1 error: floating-point types cannot be used in patterns
2   --> $DIR/issue-6804.rs:21:9
3    |
4 LL |         NAN => {}, //~ ERROR floating-point types cannot be used
5    |         ^^^
6    |
7 note: lint level defined here
8   --> $DIR/issue-6804.rs:14:9
9    |
10 LL | #![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
15 error: floating-point types cannot be used in patterns
16   --> $DIR/issue-6804.rs:27:10
17    |
18 LL |         [NAN, _] => {}, //~ ERROR floating-point types cannot be used
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: aborting due to 2 previous errors
25