// Both if-lets should be relevant fn main() { enum Foo { X(i32), Y(i32) } `[let mut x = Foo::X(1);]` `[if let Foo::X(z) = &mut x { *z += 1; }]` `[if let Foo::Y(z) = &mut x { *z += 1; }]` `[x;]` }