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.

11 lines
147 B
Rust
Raw Normal View History

2022-01-18 19:38:17 -03:00
//@ check-pass
//@ edition:2024
2022-01-18 19:38:17 -03:00
fn main() {
let opt = Some("foo bar");
if true && let Some(x) = opt {
println!("{}", x);
}
}