]>
Commit | Line | Data |
---|---|---|
32a655c1 SL |
1 | // Test that `fn foo::bar::{self}` only imports `bar` in the type namespace. |
2 | ||
32a655c1 SL |
3 | mod foo { |
4 | pub fn f() { } | |
5 | } | |
94b46f34 | 6 | use foo::f::{self}; //~ ERROR unresolved import `foo::f` |
5bcae85e | 7 | |
32a655c1 SL |
8 | mod bar { |
9 | pub fn baz() {} | |
10 | pub mod baz {} | |
9cc50fc6 | 11 | } |
32a655c1 | 12 | use bar::baz::{self}; |
223e47cc | 13 | |
9cc50fc6 | 14 | fn main() { |
94b46f34 | 15 | baz(); //~ ERROR expected function, found module `baz` |
9cc50fc6 | 16 | } |