]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/unused_unit.fixed
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unused_unit.fixed
index 7bb43cf7ae82ded49dc035f3e03f798993547cc6..3dd640b86f0b38992d49a132b1a6fa069816053d 100644 (file)
@@ -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| -> () {};
+    }
+}