Skip to content

Commit 5d4aae8

Browse files
authored
Fix unused_must_use inside Box
After #62228, this will be linted against (and causes the test to fail).
1 parent 048b00d commit 5d4aae8

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)