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