From 3e2f29a0796af501485e13cfa06302aa6e479d6a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 21 Feb 2020 11:05:56 +0100 Subject: [PATCH] remove some no-longer-needed allow(const_err) --- tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs b/tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs index 32393a37d2..bd8926aaf1 100644 --- a/tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs +++ b/tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs @@ -1,7 +1,4 @@ -// allow(const_err) to work around a bug in warnings -#[allow(const_err)] static FOO: fn() = || { assert_ne!(42, 43) }; -#[allow(const_err)] static BAR: fn(i32, i32) = |a, b| { assert_ne!(a, b) }; // use to first make the closure FnOnce() before making it fn()