From 89d8eabba52db201d2e6d7ca53882c8bb9af3231 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sat, 28 Apr 2018 13:23:50 +0900 Subject: [PATCH] Add tests for #2594 --- tests/source/enum.rs | 4 ++++ tests/target/enum.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/source/enum.rs b/tests/source/enum.rs index f3dbae4b84de..64e151106098 100644 --- a/tests/source/enum.rs +++ b/tests/source/enum.rs @@ -192,3 +192,7 @@ pub enum QlError { // (kind, input, expected) #[fail(display = "Could not find {}: Found: {}, expected: {:?}", 0, 1, 2)] ResolveError(&'static str, String, Option), } + +// #2594 +enum Foo {} +enum Bar { } diff --git a/tests/target/enum.rs b/tests/target/enum.rs index 4b79d0d8c7b6..e429e45287e2 100644 --- a/tests/target/enum.rs +++ b/tests/target/enum.rs @@ -258,3 +258,7 @@ pub enum QlError { #[fail(display = "Could not find {}: Found: {}, expected: {:?}", 0, 1, 2)] ResolveError(&'static str, String, Option), } + +// #2594 +enum Foo {} +enum Bar {}