We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e7e5b9 commit 3e2f29aCopy full SHA for 3e2f29a
tests/run-pass/coerce_non_capture_closure_to_fn_ptr.rs
@@ -1,7 +1,4 @@
1
-// allow(const_err) to work around a bug in warnings
2
-#[allow(const_err)]
3
static FOO: fn() = || { assert_ne!(42, 43) };
4
5
static BAR: fn(i32, i32) = |a, b| { assert_ne!(a, b) };
6
7
// use to first make the closure FnOnce() before making it fn()
0 commit comments