blob: 66f6ef3b83fb5494d9e80ee70913e3b7e9e37eb3 [file] [log] [blame] [edit]
//@ 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() { }