• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // check-pass
2 // compile-flags: -Z validate-mir
3 #![feature(let_chains)]
4 
let_chains(entry: std::io::Result<std::fs::DirEntry>)5 fn let_chains(entry: std::io::Result<std::fs::DirEntry>) {
6     if let Ok(entry) = entry
7         && let Some(s) = entry.file_name().to_str()
8         && s.contains("")
9     {}
10 }
11 
main()12 fn main() {}
13