2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2018-09-14 05:20:28 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_imports)]
|
2015-01-13 02:11:34 -06:00
|
|
|
mod bar {
|
2015-01-13 03:39:05 -06:00
|
|
|
pub fn foo() -> bool { true }
|
2015-01-13 02:11:34 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2015-02-01 11:44:15 -06:00
|
|
|
let foo = || false;
|
2015-01-13 02:11:34 -06:00
|
|
|
use bar::foo;
|
2015-01-13 03:39:05 -06:00
|
|
|
assert_eq!(foo(), false);
|
2015-01-13 02:11:34 -06:00
|
|
|
}
|