]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/rustfmt/tests/source/issue_4374.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / issue_4374.rs
diff --git a/src/tools/rustfmt/tests/source/issue_4374.rs b/src/tools/rustfmt/tests/source/issue_4374.rs
new file mode 100644 (file)
index 0000000..2a45a02
--- /dev/null
@@ -0,0 +1,13 @@
+fn a<F>(_f: F) -> ()
+where
+  F: FnOnce() -> (),
+{
+}
+fn main() {
+  a(|| {
+    #[allow(irrefutable_let_patterns)]
+    while let _ = 0 {
+      break;
+    }
+  });
+}
\ No newline at end of file