fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` 2 --> $DIR/match-forbidden-without-eq.rs:13:9 3 | 4LL | FOO => { } 5 | ^^^ 6 7warning: floating-point types cannot be used in patterns 8 --> $DIR/match-forbidden-without-eq.rs:21:9 9 | 10LL | f32::INFINITY => { } 11 | ^^^^^^^^^^^^^ 12 | 13 = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default 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 17error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]` 18 --> $DIR/match-forbidden-without-eq.rs:13:9 19 | 20LL | FOO => { } 21 | ^^^ 22 23warning: floating-point types cannot be used in patterns 24 --> $DIR/match-forbidden-without-eq.rs:21:9 25 | 26LL | f32::INFINITY => { } 27 | ^^^^^^^^^^^^^ 28 | 29 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 30 = note: for more information, see issue #41620 <https://github.com/rust-lang/rust/issues/41620> 31 32error: aborting due to 2 previous errors 33