rust/tests/source/visibility.rs

9 lines
218 B
Rust
Raw Normal View History

2018-03-06 04:42:55 -06:00
// #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() {}
}
}