rust/tests/ui/pattern/issue-74954.rs
2024-02-16 20:02:50 +00:00

8 lines
141 B
Rust

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