rust/tests/ui/imports/glob-conflict-cross-crate-1.rs

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

13 lines
468 B
Rust
Raw Normal View History

//@ aux-build:glob-conflict.rs
extern crate glob_conflict;
fn main() {
glob_conflict::f(); //~ ERROR cannot find function `f` in crate `glob_conflict`
2024-01-21 05:17:28 -06:00
//^ FIXME: `glob_conflict::f` should raise an
// ambiguity error instead of a not found error.
glob_conflict::glob::f(); //~ ERROR cannot find function `f` in module `glob_conflict::glob`
2024-01-21 05:17:28 -06:00
//^ FIXME: `glob_conflict::glob::f` should raise an
// ambiguity error instead of a not found error.
}