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-11 01:22:25 +00: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-05 03:03:15 +00:00
test::Foo::<test::B>::foo(); //~ ERROR associated function `foo` is private
2019-05-11 01:22:25 +00:00
}