rust/tests/ui/rfcs/rfc-2497-if-let-chains/issue-92145.rs

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

12 lines
154 B
Rust
Raw Normal View History

2022-01-18 16:38:17 -06:00
// check-pass
#![feature(let_chains)]
2022-01-18 16:38:17 -06:00
fn main() {
let opt = Some("foo bar");
if true && let Some(x) = opt {
println!("{}", x);
}
}