We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fc8bb1 commit 0393037Copy full SHA for 0393037
tests/source/visibility.rs
@@ -0,0 +1,8 @@
1
+// #2398
2
+pub mod outer_mod {
3
+ pub mod inner_mod {
4
+ pub ( in outer_mod ) fn outer_mod_visible_fn() {}
5
+ pub ( super ) fn super_mod_visible_fn() {}
6
+ pub ( self ) fn inner_mod_visible_fn() {}
7
+ }
8
+}
tests/target/visibility.rs
+ pub(in outer_mod) fn outer_mod_visible_fn() {}
+ pub(super) fn super_mod_visible_fn() {}
+ pub(self) fn inner_mod_visible_fn() {}
0 commit comments