rust/tests/ui/pattern/issue-74954.rs

8 lines
140 B
Rust
Raw Normal View History

2020-07-30 17:19:49 -05:00
// check-pass
fn main() {
if let Some([b'@', filename @ ..]) = Some(b"@abc123") {
println!("filename {:?}", filename);
}
}