Skip to content

Commit 7e7144a

Browse files
committed
Add comment mod-pub-access.rs
1 parent 382bc08 commit 7e7144a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/ui/modules/mod-pub-access.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//@ run-pass
2+
// This is a name resolution smoke test that ensures paths with more than one
3+
// segment (e.g., `foo::bar`) resolve correctly.
4+
// It also serves as a basic visibility test — confirming that a `pub` item
5+
// inside a private module can still be accessed from outside that module.
26

37
mod foo {
48
pub fn bar(_offset: usize) {}

0 commit comments

Comments
 (0)