]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-27889.rs
2 #![allow(unused_assignments)]
3 #![allow(unused_variables)]
4 // Test that a field can have the same name in different variants
12 pub fn foo(mut x
: Foo
) {
15 if let Foo
::X { ref foo }
= x
{
18 if let Foo
::Y { ref mut foo }
= x
{