summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs b/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs
deleted file mode 100644
index 6fd5768a5..000000000
--- a/src/test/ui/pattern/issue-67776-match-same-name-enum-variant-refs.rs
+++ /dev/null
@@ -1,42 +0,0 @@
-// Test for issue #67776: binding named the same as enum variant
-// should report a warning even when matching against a reference type
-
-// check-pass
-
-#![allow(unused_variables)]
-#![allow(non_snake_case)]
-
-enum Foo {
- Bar,
- Baz,
-}
-
-
-fn fn1(e: Foo) {
- match e {
- Bar => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- Baz => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- }
-}
-
-fn fn2(e: &Foo) {
- match e {
- Bar => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- Baz => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- }
-}
-
-fn fn3(e: &mut &&mut Foo) {
- match e {
- Bar => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- Baz => {},
- //~^ WARNING named the same as one of the variants of the type `Foo`
- }
-}
-
-fn main() {}