2024-02-17 04:02:50 +08:00
|
|
|
//@ aux-build:issue-11680.rs
|
2014-05-07 07:45:21 +08:00
|
|
|
|
2015-03-20 06:39:03 +08:00
|
|
|
extern crate issue_11680 as other;
|
2014-05-07 07:45:21 +08:00
|
|
|
|
|
|
|
fn main() {
|
2014-11-06 16:05:53 +08:00
|
|
|
let _b = other::Foo::Bar(1);
|
2016-02-23 06:33:38 +08:00
|
|
|
//~^ ERROR: enum `Foo` is private
|
2014-05-07 07:45:21 +08:00
|
|
|
|
2014-11-06 16:05:53 +08:00
|
|
|
let _b = other::test::Foo::Bar(1);
|
2016-02-23 06:33:38 +08:00
|
|
|
//~^ ERROR: enum `Foo` is private
|
2014-05-07 07:45:21 +08:00
|
|
|
}
|