diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-11680.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-11680.rs b/src/test/ui/issues/issue-11680.rs new file mode 100644 index 000000000..bfa8f5c5a --- /dev/null +++ b/src/test/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 +} |