Skip to content

Commit 3e2f29a

Browse files
committed
remove some no-longer-needed allow(const_err)
1 parent 0e7e5b9 commit 3e2f29a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// allow(const_err) to work around a bug in warnings
2-
#[allow(const_err)]
31
static FOO: fn() = || { assert_ne!(42, 43) };
4-
#[allow(const_err)]
52
static BAR: fn(i32, i32) = |a, b| { assert_ne!(a, b) };
63

74
// use to first make the closure FnOnce() before making it fn()

0 commit comments

Comments
 (0)