rust/src/test/ui/pattern/issue-74954.rs
2020-07-31 07:50:29 +09:00

8 lines
140 B
Rust

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