]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-38293.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-38293.rs
CommitLineData
32a655c1
SL
1// Test that `fn foo::bar::{self}` only imports `bar` in the type namespace.
2
32a655c1
SL
3mod foo {
4 pub fn f() { }
5}
94b46f34 6use foo::f::{self}; //~ ERROR unresolved import `foo::f`
5bcae85e 7
32a655c1
SL
8mod bar {
9 pub fn baz() {}
10 pub mod baz {}
9cc50fc6 11}
32a655c1 12use bar::baz::{self};
223e47cc 13
9cc50fc6 14fn main() {
94b46f34 15 baz(); //~ ERROR expected function, found module `baz`
9cc50fc6 16}