blob: feb94b681849f17fcb9abdd7c74b819d624dcab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// aux-build:namespaced_enums.rs
extern crate namespaced_enums;
mod m {
pub use namespaced_enums::Foo::*;
}
pub fn main() {
use namespaced_enums::Foo::*;
foo(); //~ ERROR cannot find function `foo` in this scope
m::foo(); //~ ERROR cannot find function `foo` in module `m`
bar(); //~ ERROR cannot find function `bar` in this scope
m::bar(); //~ ERROR cannot find function `bar` in module `m`
}
|