mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Add tests for #2398
This commit is contained in:
parent
3fc8bb19a6
commit
0393037d6e
8
tests/source/visibility.rs
Normal file
8
tests/source/visibility.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// #2398
|
||||
pub mod outer_mod {
|
||||
pub mod inner_mod {
|
||||
pub ( in outer_mod ) fn outer_mod_visible_fn() {}
|
||||
pub ( super ) fn super_mod_visible_fn() {}
|
||||
pub ( self ) fn inner_mod_visible_fn() {}
|
||||
}
|
||||
}
|
8
tests/target/visibility.rs
Normal file
8
tests/target/visibility.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// #2398
|
||||
pub mod outer_mod {
|
||||
pub mod inner_mod {
|
||||
pub(in outer_mod) fn outer_mod_visible_fn() {}
|
||||
pub(super) fn super_mod_visible_fn() {}
|
||||
pub(self) fn inner_mod_visible_fn() {}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user