Skip to content

Commit c774981

Browse files
Add a test for pattern matching within a tuple
1 parent 2098b6e commit c774981

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/ui/issues/issue-74954.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// check-pass
2+
3+
fn main() {
4+
if let Some([b'@', filename @ ..]) = Some(b"@abc123") {
5+
println!("filename {:?}", filename);
6+
}
7+
}

0 commit comments

Comments
 (0)