Skip to content

Commit

Permalink
remove some no-longer-needed allow(const_err)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 21, 2020
1 parent 0e7e5b9 commit 3e2f29a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 3e2f29a

Please sign in to comment.