rust/tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
421 B
Rust
Raw Normal View History

// 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`
}