rust/tests/ui/closures/2229_closure_analysis/match/issue-87097.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
837 B
Plaintext
Raw Normal View History

warning: variant `B` is never constructed
2021-07-15 09:33:51 -05:00
--> $DIR/issue-87097.rs:6:5
|
LL | enum Variant {
| ------- variant in this enum
LL | A,
2021-07-15 09:33:51 -05:00
LL | B,
| ^
|
= note: `#[warn(dead_code)]` on by default
warning: unused closure that must be used
--> $DIR/issue-87097.rs:17:5
|
LL | / || match out_ref {
LL | | Variant::A => (),
LL | | Variant::B => (),
LL | | };
| |_____^
2021-07-15 09:33:51 -05:00
|
= note: closures are lazy and do nothing unless called
2022-09-18 10:55:36 -05:00
= note: `#[warn(unused_must_use)]` on by default
2021-07-15 09:33:51 -05:00
warning: unused closure that must be used
--> $DIR/issue-87097.rs:26:5
|
LL | / || match here.field {
LL | | Variant::A => (),
LL | | Variant::B => (),
LL | | };
| |_____^
2021-07-15 09:33:51 -05:00
|
= note: closures are lazy and do nothing unless called
warning: 3 warnings emitted