summaryrefslogtreecommitdiffstats
path: root/src/test/ui/drop/issue-100276.rs
blob: 6401a8d14810005df90692b2486d8b7fffa0e435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}