1 warning: to use a constant of type `NoDerive` in a pattern, the constant's initializer must be trivial or `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
2 --> $DIR/warn_corner_cases.rs:26:47
4 LL | match None { Some(_) => panic!("whoops"), INDEX => dbg!(INDEX), };
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 #73448 <https://github.com/rust-lang/rust/issues/73448>
9 = note: `#[warn(nontrivial_structural_match)]` on by default
11 warning: to use a constant of type `NoDerive` in a pattern, the constant's initializer must be trivial or `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
12 --> $DIR/warn_corner_cases.rs:32:47
14 LL | match None { Some(_) => panic!("whoops"), CALL => dbg!(CALL), };
17 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18 = note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448>
20 warning: to use a constant of type `NoDerive` in a pattern, the constant's initializer must be trivial or `NoDerive` must be annotated with `#[derive(PartialEq, Eq)]`
21 --> $DIR/warn_corner_cases.rs:38:47
23 LL | match None { Some(_) => panic!("whoops"), METHOD_CALL => dbg!(METHOD_CALL), };
26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27 = note: for more information, see issue #73448 <https://github.com/rust-lang/rust/issues/73448>
29 warning: 3 warnings emitted