summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11680.rs
blob: bfa8f5c5a1b410d0e372e1d03a6a9c148b391870 (plain)
1
2
3
4
5
6
7
8
9
10
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
}