]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/issue-92145.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / rfc-2497-if-let-chains / issue-92145.rs
1 // check-pass
2
3 #![feature(let_chains)]
4
5 fn main() {
6     let opt = Some("foo bar");
7
8     if true && let Some(x) = opt {
9         println!("{}", x);
10     }
11 }