rust/tests/ui/pattern/issue-74954.rs
2023-01-11 09:32:08 +00:00

8 lines
140 B
Rust

// check-pass
fn main() {
if let Some([b'@', filename @ ..]) = Some(b"@abc123") {
println!("filename {:?}", filename);
}
}