diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-53498.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-53498.rs b/src/test/ui/issues/issue-53498.rs new file mode 100644 index 000000000..9e0437c46 --- /dev/null +++ b/src/test/ui/issues/issue-53498.rs @@ -0,0 +1,17 @@ +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 +} |