Skip to content

Commit 72b2e10

Browse files
committed
Auto merge of #806 - varkor:patch-1, r=RalfJung
Fix `unused_must_use` inside `Box` After #62228, this will be linted against (and causes the test to fail). (This blocks #62228.)
2 parents aeb658e + 5d4aae8 commit 72b2e10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run-pass/issue-30530.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ pub enum Handler {
2121
}
2222

2323
fn main() {
24-
take(Handler::Default, Box::new(main));
24+
#[allow(unused_must_use)] {
25+
take(Handler::Default, Box::new(main));
26+
}
2527
}
2628

2729
#[inline(never)]

0 commit comments

Comments
 (0)