]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-53498.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-53498.rs
1 pub mod test {
2 pub struct A;
3 pub struct B;
4 pub struct Foo<T>(T);
5
6 impl Foo<A> {
7 fn foo() {}
8 }
9
10 impl Foo<B> {
11 fn foo() {}
12 }
13 }
14
15 fn main() {
16 test::Foo::<test::B>::foo(); //~ ERROR associated function `foo` is private
17 }