diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-10806.rs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-10806.rs b/src/test/ui/issues/issue-10806.rs new file mode 100644 index 000000000..2f1d7bb5a --- /dev/null +++ b/src/test/ui/issues/issue-10806.rs @@ -0,0 +1,38 @@ +// run-pass +#![allow(unused_imports)] + +// pretty-expanded FIXME #23616 + +pub fn foo() -> isize { + 3 +} +pub fn bar() -> isize { + 4 +} + +pub mod baz { + use {foo, bar}; + pub fn quux() -> isize { + foo() + bar() + } +} + +pub mod grault { + use {foo}; + pub fn garply() -> isize { + foo() + } +} + +pub mod waldo { + use {}; + pub fn plugh() -> isize { + 0 + } +} + +pub fn main() { + let _x = baz::quux(); + let _y = grault::garply(); + let _z = waldo::plugh(); +} |