mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
16 lines
224 B
Rust
16 lines
224 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: method `foo` is private
|
|
}
|
|
}
|
|
|
|
fn main() { }
|