mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
422 B
Rust
16 lines
422 B
Rust
//@ 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`
|
|
}
|