]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/matches_reduce_branches.rs
1 // compile-flags: -Zunsound-mir-opts
2 // EMIT_MIR_FOR_EACH_BIT_WIDTH
3 // EMIT_MIR matches_reduce_branches.foo.MatchBranchSimplification.diff
4 // EMIT_MIR matches_reduce_branches.bar.MatchBranchSimplification.diff
6 fn foo(bar
: Option
<()>) {
7 if matches
!(bar
, None
) {
12 fn bar(i
: i32) -> (bool
, bool
, bool
, bool
) {
41 let _
= foo(Some(()));