diff --git a/tests/run-pass/issue-30530.rs b/tests/run-pass/issue-30530.rs index 10dec30c64..86c2d9184e 100644 --- a/tests/run-pass/issue-30530.rs +++ b/tests/run-pass/issue-30530.rs @@ -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)]