summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-21202.rs
blob: 2c5f1394449b46c7dbc0203103afe0cd1116c8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// aux-build:issue-21202.rs

extern crate issue_21202 as crate1;

use crate1::A;

mod B {
    use crate1::A::Foo;
    fn bar(f: Foo) {
        Foo::foo(&f);
        //~^ ERROR: method `foo` is private
    }
}

fn main() { }