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