mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
13 lines
264 B
Rust
13 lines
264 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Z validate-mir
|
|
#![feature(let_chains)]
|
|
|
|
fn let_chains(entry: std::io::Result<std::fs::DirEntry>) {
|
|
if let Ok(entry) = entry
|
|
&& let Some(s) = entry.file_name().to_str()
|
|
&& s.contains("")
|
|
{}
|
|
}
|
|
|
|
fn main() {}
|