about summary refs log tree commit diff
path: root/tests/ui/expr/if/attrs/let-chains-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/expr/if/attrs/let-chains-attr.rs')
-rw-r--r--tests/ui/expr/if/attrs/let-chains-attr.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/expr/if/attrs/let-chains-attr.rs b/tests/ui/expr/if/attrs/let-chains-attr.rs
new file mode 100644
index 00000000000..2cd8731141a
--- /dev/null
+++ b/tests/ui/expr/if/attrs/let-chains-attr.rs
@@ -0,0 +1,13 @@
+// check-pass
+
+#![feature(let_chains)]
+
+#[cfg(FALSE)]
+fn foo() {
+    #[attr]
+    if let Some(_) = Some(true) && let Ok(_) = Ok(1) {
+    } else if let Some(false) = Some(true) {
+    }
+}
+
+fn main() {}