diff options
Diffstat (limited to 'tests/ui/resolve/auxiliary/issue-80079.rs')
-rw-r--r-- | tests/ui/resolve/auxiliary/issue-80079.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/resolve/auxiliary/issue-80079.rs b/tests/ui/resolve/auxiliary/issue-80079.rs new file mode 100644 index 000000000..190ca75ab --- /dev/null +++ b/tests/ui/resolve/auxiliary/issue-80079.rs @@ -0,0 +1,18 @@ +#![crate_type = "lib"] + +pub mod public { + use private_import; + + // should not be suggested since it is private + struct Foo; + + mod private_module { + // should not be suggested since it is private + pub struct Foo; + } +} + +mod private_import { + // should not be suggested since it is private + pub struct Foo; +} |