]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / closures / 2229_closure_analysis / match / issue-87097.stderr
1 warning: variant `B` is never constructed
2   --> $DIR/issue-87097.rs:6:5
3    |
4 LL | enum Variant {
5    |      ------- variant in this enum
6 LL |     A,
7 LL |     B,
8    |     ^
9    |
10    = note: `#[warn(dead_code)]` on by default
11
12 warning: unused closure that must be used
13   --> $DIR/issue-87097.rs:17:5
14    |
15 LL | /     || match out_ref {
16 LL | |         Variant::A => (),
17 LL | |         Variant::B => (),
18 LL | |     };
19    | |_____^
20    |
21    = note: closures are lazy and do nothing unless called
22    = note: `#[warn(unused_must_use)]` on by default
23
24 warning: unused closure that must be used
25   --> $DIR/issue-87097.rs:26:5
26    |
27 LL | /     || match here.field {
28 LL | |         Variant::A => (),
29 LL | |         Variant::B => (),
30 LL | |     };
31    | |_____^
32    |
33    = note: closures are lazy and do nothing unless called
34
35 warning: 3 warnings emitted
36