about summary refs log tree commit diff
path: root/tests/ui/issues/issue-11680.rs
blob: 9f3dfebcc812c5500907132447ef505635249227 (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
}