fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: to use a constant of type `EnumSet<Enum8>` in a pattern, the type must implement `PartialEq` 2 --> $DIR/issue-72896-non-partial-eq-const.rs:20:9 3 | 4LL | CONST_SET => { /* ok */ } 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 #116122 <https://github.com/rust-lang/rust/issues/116122> 9 = note: `#[warn(const_patterns_without_partial_eq)]` on by default 10 11warning: 1 warning emitted 12 13Future incompatibility report: Future breakage diagnostic: 14warning: to use a constant of type `EnumSet<Enum8>` in a pattern, the type must implement `PartialEq` 15 --> $DIR/issue-72896-non-partial-eq-const.rs:20:9 16 | 17LL | CONST_SET => { /* ok */ } 18 | ^^^^^^^^^ 19 | 20 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 21 = note: for more information, see issue #116122 <https://github.com/rust-lang/rust/issues/116122> 22 = note: `#[warn(const_patterns_without_partial_eq)]` on by default 23