diff options
Diffstat (limited to 'tests/ui/imports/issue-28388-2.rs')
-rw-r--r-- | tests/ui/imports/issue-28388-2.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-28388-2.rs b/tests/ui/imports/issue-28388-2.rs new file mode 100644 index 000000000..024b0388b --- /dev/null +++ b/tests/ui/imports/issue-28388-2.rs @@ -0,0 +1,10 @@ +// Prefix in imports with empty braces should be resolved and checked privacy, stability, etc. + +mod m { + mod n {} +} + +use m::n::{}; +//~^ ERROR module `n` is private + +fn main() {} |