2016-12-11 21:35:48 -06:00
|
|
|
// Test that `fn foo::bar::{self}` only imports `bar` in the type namespace.
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
pub fn f() { }
|
|
|
|
}
|
2018-05-14 17:24:34 -05:00
|
|
|
use foo::f::{self}; //~ ERROR unresolved import `foo::f`
|
2016-12-11 21:35:48 -06:00
|
|
|
|
|
|
|
mod bar {
|
|
|
|
pub fn baz() {}
|
|
|
|
pub mod baz {}
|
|
|
|
}
|
|
|
|
use bar::baz::{self};
|
|
|
|
|
|
|
|
fn main() {
|
2018-05-14 17:24:34 -05:00
|
|
|
baz(); //~ ERROR expected function, found module `baz`
|
2016-12-11 21:35:48 -06:00
|
|
|
}
|