1 // Test for issue #67776: binding named the same as enum variant
2 // should report a warning even when matching against a reference type
6 #![allow(unused_variables)]
7 #![allow(non_snake_case)]
18 //~^ WARNING named the same as one of the variants of the type `Foo`
20 //~^ WARNING named the same as one of the variants of the type `Foo`
27 //~^ WARNING named the same as one of the variants of the type `Foo`
29 //~^ WARNING named the same as one of the variants of the type `Foo`
33 fn fn3(e: &mut &&mut Foo) {
36 //~^ WARNING named the same as one of the variants of the type `Foo`
38 //~^ WARNING named the same as one of the variants of the type `Foo`