rust/src/test/ui/issues/issue-21202.rs
2020-03-12 15:47:36 -05:00

16 lines
237 B
Rust

// 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: associated function `foo` is private
}
}
fn main() { }