summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-18252.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/resolve/issue-18252.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/resolve/issue-18252.rs b/src/test/ui/resolve/issue-18252.rs
new file mode 100644
index 000000000..af0a3cbcb
--- /dev/null
+++ b/src/test/ui/resolve/issue-18252.rs
@@ -0,0 +1,8 @@
+enum Foo {
+ Variant { x: usize }
+}
+
+fn main() {
+ let f = Foo::Variant(42);
+ //~^ ERROR expected function, tuple struct or tuple variant, found struct variant `Foo::Variant`
+}