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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
141 B
Rust
Raw Normal View History

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