diff options
Diffstat (limited to 'src/test/ui/enum/union-in-enum.rs')
-rw-r--r-- | src/test/ui/enum/union-in-enum.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/enum/union-in-enum.rs b/src/test/ui/enum/union-in-enum.rs deleted file mode 100644 index 048913e25..000000000 --- a/src/test/ui/enum/union-in-enum.rs +++ /dev/null @@ -1,13 +0,0 @@ -// This test checks that the union keyword -// is accepted as the name of an enum variant -// when not followed by an identifier -// This special case exists because `union` is a contextual keyword. - -#![allow(warnings)] - -// check-pass - -enum A { union } -enum B { union {} } -enum C { union() } -fn main(){} |