summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unused_unit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/unused_unit.rs')
-rw-r--r--src/tools/clippy/tests/ui/unused_unit.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/unused_unit.rs b/src/tools/clippy/tests/ui/unused_unit.rs
index 21073fb80..bddecf06f 100644
--- a/src/tools/clippy/tests/ui/unused_unit.rs
+++ b/src/tools/clippy/tests/ui/unused_unit.rs
@@ -7,6 +7,7 @@
// test of the JSON error format.
#![feature(custom_inner_attributes)]
+#![feature(closure_lifetime_binder)]
#![rustfmt::skip]
#![deny(clippy::unused_unit)]
@@ -87,3 +88,9 @@ fn macro_expr() {
}
e!()
}
+
+mod issue9748 {
+ fn main() {
+ let _ = for<'a> |_: &'a u32| -> () {};
+ }
+}