]> git.lizzy.rs Git - rust.git/blob - tests/ui/namespace/namespaced-enum-glob-import-no-impls-xcrate.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / namespace / namespaced-enum-glob-import-no-impls-xcrate.rs
1 // aux-build:namespaced_enums.rs
2 extern crate namespaced_enums;
3
4 mod m {
5     pub use namespaced_enums::Foo::*;
6 }
7
8 pub fn main() {
9     use namespaced_enums::Foo::*;
10
11     foo(); //~ ERROR cannot find function `foo` in this scope
12     m::foo(); //~ ERROR cannot find function `foo` in module `m`
13     bar(); //~ ERROR cannot find function `bar` in this scope
14     m::bar(); //~ ERROR cannot find function `bar` in module `m`
15 }