Skip to content

Commit

Permalink
Fix unused_must_use inside Box
Browse files Browse the repository at this point in the history
After rust-lang/rust#62228, this will be linted against (and causes the test to fail).
  • Loading branch information
varkor authored Jun 30, 2019
1 parent 048b00d commit 5d4aae8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/run-pass/issue-30530.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ pub enum Handler {
}

fn main() {
take(Handler::Default, Box::new(main));
#[allow(unused_must_use)] {
take(Handler::Default, Box::new(main));
}
}

#[inline(never)]
Expand Down

0 comments on commit 5d4aae8

Please sign in to comment.