]>
git.proxmox.com Git - rustc.git/blob - tests/ui/parser/struct-literal-in-match-guard.rs
3 // Unlike `if` condition, `match` guards accept struct literals.
4 // This is detected in <https://github.com/rust-lang/rust/pull/74566#issuecomment-663613705>.
13 () if f
== Foo { x: 42 }
=> {}