blob: 9ec2e58ecadcb4e2bc5e890145fb524f89c43fde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// regression test for issue 4366
// ensures that 'use foo:*' doesn't import non-public 'use' statements in the
// module 'foo'
use m1::*;
mod foo {
pub fn foo() {}
}
mod a {
pub mod b {
use foo::foo;
type Bar = isize;
}
pub mod sub {
use a::b::*;
fn sub() -> isize { foo(); 1 } //~ ERROR cannot find function `foo` in this scope
}
}
mod m1 {
fn foo() {}
}
fn main() {}
|