2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_imports)]
|
2013-12-04 15:08:42 -06:00
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn foo() -> isize {
|
2013-12-04 15:08:42 -06:00
|
|
|
3
|
|
|
|
}
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn bar() -> isize {
|
2013-12-04 15:08:42 -06:00
|
|
|
4
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod baz {
|
|
|
|
use {foo, bar};
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn quux() -> isize {
|
2013-12-04 15:08:42 -06:00
|
|
|
foo() + bar()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod grault {
|
|
|
|
use {foo};
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn garply() -> isize {
|
2013-12-04 15:08:42 -06:00
|
|
|
foo()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod waldo {
|
|
|
|
use {};
|
2015-03-25 19:06:52 -05:00
|
|
|
pub fn plugh() -> isize {
|
2013-12-04 15:08:42 -06:00
|
|
|
0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-03 17:30:54 -06:00
|
|
|
pub fn main() {
|
2013-12-04 15:08:42 -06:00
|
|
|
let _x = baz::quux();
|
|
|
|
let _y = grault::garply();
|
|
|
|
let _z = waldo::plugh();
|
|
|
|
}
|