]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` |
0731742a | 2 | --> $DIR/match-forbidden-without-eq.rs:13:9 |
b7449926 XL |
3 | | |
4 | LL | FOO => { } | |
5 | | ^^^ | |
6 | ||
7 | warning: floating-point types cannot be used in patterns | |
1b1a35ee | 8 | --> $DIR/match-forbidden-without-eq.rs:20:9 |
b7449926 XL |
9 | | |
10 | LL | f32::INFINITY => { } | |
11 | | ^^^^^^^^^^^^^ | |
12 | | | |
416331ca | 13 | = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default |
b7449926 XL |
14 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
15 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620> | |
16 | ||
48663c56 | 17 | warning: floating-point types cannot be used in patterns |
1b1a35ee | 18 | --> $DIR/match-forbidden-without-eq.rs:20:9 |
48663c56 XL |
19 | | |
20 | LL | f32::INFINITY => { } | |
21 | | ^^^^^^^^^^^^^ | |
22 | | | |
23 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
24 | = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620> | |
25 | ||
1b1a35ee | 26 | error: aborting due to previous error; 2 warnings emitted |
b7449926 | 27 |