diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-21202.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-21202.rs b/src/test/ui/issues/issue-21202.rs new file mode 100644 index 000000000..f62de7ce7 --- /dev/null +++ b/src/test/ui/issues/issue-21202.rs @@ -0,0 +1,15 @@ +// aux-build:issue-21202.rs + +extern crate issue_21202 as crate1; + +use crate1::A; + +mod B { + use crate1::A::Foo; + fn bar(f: Foo) { + Foo::foo(&f); + //~^ ERROR: associated function `foo` is private + } +} + +fn main() { } |