summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/issue-74954.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pattern/issue-74954.rs')
-rw-r--r--src/test/ui/pattern/issue-74954.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/pattern/issue-74954.rs b/src/test/ui/pattern/issue-74954.rs
new file mode 100644
index 000000000..269ec3c7a
--- /dev/null
+++ b/src/test/ui/pattern/issue-74954.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+fn main() {
+ if let Some([b'@', filename @ ..]) = Some(b"@abc123") {
+ println!("filename {:?}", filename);
+ }
+}