mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
fe8f66e4bc
Fixes #125058
25 lines
593 B
Plaintext
25 lines
593 B
Plaintext
warning: struct `Foo` is never constructed
|
|
--> $DIR/skipped-ref-pats-issue-125058.rs:8:8
|
|
|
|
|
LL | struct Foo;
|
|
| ^^^
|
|
|
|
|
= note: `#[warn(dead_code)]` on by default
|
|
|
|
warning: unused closure that must be used
|
|
--> $DIR/skipped-ref-pats-issue-125058.rs:12: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)]` on by default
|
|
|
|
warning: 2 warnings emitted
|
|
|