summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11680.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-11680.rs')
-rw-r--r--tests/ui/issues/issue-11680.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-11680.rs b/tests/ui/issues/issue-11680.rs
new file mode 100644
index 000000000..bfa8f5c5a
--- /dev/null
+++ b/tests/ui/issues/issue-11680.rs
@@ -0,0 +1,11 @@
+// aux-build:issue-11680.rs
+
+extern crate issue_11680 as other;
+
+fn main() {
+ let _b = other::Foo::Bar(1);
+ //~^ ERROR: enum `Foo` is private
+
+ let _b = other::test::Foo::Bar(1);
+ //~^ ERROR: enum `Foo` is private
+}