fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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