rust/src/test/ui/editions/edition-imports-virtual-2015-ambiguity.rs

19 lines
277 B
Rust
Raw Normal View History

// edition:2018
// aux-build:edition-imports-2015.rs
// error-pattern: `Ambiguous` is ambiguous
#[macro_use]
extern crate edition_imports_2015;
pub struct Ambiguous {}
mod check {
pub struct Ambiguous {}
fn check() {
gen_ambiguous!();
}
}
fn main() {}