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
228 B
Rust
Raw Normal View History

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