Add tests for #2398

This commit is contained in:
Seiichi Uchida 2018-03-06 19:42:55 +09:00
parent 3fc8bb19a6
commit 0393037d6e
2 changed files with 16 additions and 0 deletions

View 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() {}
}
}

View 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() {}
}
}