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

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

18 lines
264 B
Rust
Raw Normal View History

2019-05-10 20:22:25 -05:00
pub mod test {
pub struct A;
pub struct B;
pub struct Foo<T>(T);
impl Foo<A> {
fn foo() {}
}
impl Foo<B> {
fn foo() {}
}
}
fn main() {
2020-03-04 21:03:15 -06:00
test::Foo::<test::B>::foo(); //~ ERROR associated function `foo` is private
2019-05-10 20:22:25 -05:00
}