rust/tests/ui/issues/issue-11680.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
229 B
Rust
Raw Normal View History

//@ aux-build:issue-11680.rs
extern crate issue_11680 as other;
fn main() {
let _b = other::Foo::Bar(1);
2016-02-23 06:33:38 +08:00
//~^ ERROR: enum `Foo` is private
let _b = other::test::Foo::Bar(1);
2016-02-23 06:33:38 +08:00
//~^ ERROR: enum `Foo` is private
}