about summary refs log tree commit diff
path: root/tests/ui/pattern/skipped-ref-pats-issue-125058.stderr
blob: 9580bab2b4f6895f3bfb0b8fe7f064b0884511fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
warning: struct `Foo` is never constructed
  --> $DIR/skipped-ref-pats-issue-125058.rs:7:8
   |
LL | struct Foo;
   |        ^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: unused closure that must be used
  --> $DIR/skipped-ref-pats-issue-125058.rs:11:5
   |
LL | /     || {
LL | |
LL | |         if let Some(Some(&mut x)) = &mut Some(&mut Some(0)) {
LL | |             let _: u32 = x;
LL | |         }
LL | |     };
   | |_____^
   |
   = note: closures are lazy and do nothing unless called
   = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default

warning: 2 warnings emitted