diff options
Diffstat (limited to 'tests/ui/imports/import5.rs')
-rw-r--r-- | tests/ui/imports/import5.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/imports/import5.rs b/tests/ui/imports/import5.rs new file mode 100644 index 000000000..be2a55c2d --- /dev/null +++ b/tests/ui/imports/import5.rs @@ -0,0 +1,10 @@ +// run-pass +use foo::bar; +mod foo { + pub use foo::zed::bar; + pub mod zed { + pub fn bar() { println!("foo"); } + } +} + +pub fn main() { bar(); } |