2014-10-19 01:46:08 -05:00
|
|
|
// aux-build:namespaced_enums.rs
|
|
|
|
extern crate namespaced_enums;
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
pub use namespaced_enums::Foo::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
use namespaced_enums::Foo::*;
|
|
|
|
|
2017-01-11 16:18:08 -06:00
|
|
|
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`
|
2014-10-19 01:46:08 -05:00
|
|
|
}
|