rust/tests/ui/issues/issue-21202.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
237 B
Rust
Raw Normal View History

2018-11-05 04:00:03 +00:00
// 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);
2020-03-05 03:03:15 +00:00
//~^ ERROR: associated function `foo` is private
}
}
fn main() { }