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

18 lines
264 B
Rust

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() {
test::Foo::<test::B>::foo(); //~ ERROR associated function `foo` is private
}