We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382bc08 commit 7e7144aCopy full SHA for 7e7144a
tests/ui/modules/mod-pub-access.rs
@@ -1,4 +1,8 @@
1
//@ 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.
6
7
mod foo {
8
pub fn bar(_offset: usize) {}
0 commit comments