]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53498.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.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 }