1 warning: variant `B` is never constructed
2 --> $DIR/issue-87097.rs:6:5
5 | ------- variant in this enum
10 = note: `#[warn(dead_code)]` on by default
12 warning: unused closure that must be used
13 --> $DIR/issue-87097.rs:17:5
15 LL | / || match out_ref {
16 LL | | Variant::A => (),
17 LL | | Variant::B => (),
21 = note: closures are lazy and do nothing unless called
22 = note: `#[warn(unused_must_use)]` on by default
24 warning: unused closure that must be used
25 --> $DIR/issue-87097.rs:26:5
27 LL | / || match here.field {
28 LL | | Variant::A => (),
29 LL | | Variant::B => (),
33 = note: closures are lazy and do nothing unless called
35 warning: 3 warnings emitted