pubmodm{useretrieve::*;#[mod_pub_use(submodule_for_the_test)]#[test]fntest_in_situ(){// explicit sub-module namespace(mod + use)
assert_eq!(submodule_for_the_test::VALUE,123usize);// implicit sub-module namespace(pub mod)
assert_eq!(VALUE,123usize);}}#[test]fntest_exo_situ(){// The `m::submodule_for_the_test::VALUE` in this place should be compile error, but it is not an error for the `mod_use` pattern.
// (Here I should originally test for a compile error, but the implementation is too cumbersome, it omitted.)
// access from the super-module(pub mod + use)
// assert_eq!(m::submodule_for_the_test::VALUE, 123usize);
// access from the super-module(pub mod + pub use)
assert_eq!(m::VALUE,123usize);}