summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-17518.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/resolve/issue-17518.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/resolve/issue-17518.rs b/src/test/ui/resolve/issue-17518.rs
new file mode 100644
index 000000000..edaebc812
--- /dev/null
+++ b/src/test/ui/resolve/issue-17518.rs
@@ -0,0 +1,7 @@
+enum SomeEnum {
+ E
+}
+
+fn main() {
+ E { name: "foobar" }; //~ ERROR cannot find struct, variant or union type `E`
+}