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

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

21 lines
329 B
Rust
Raw Normal View History

2021-06-21 22:03:50 -07:00
//@ check-pass
//@ edition:2018
//@ compile-flags:--extern edition_imports_2015
//@ aux-build:edition-imports-2015.rs
mod edition_imports_2015 {
pub struct Path;
}
pub struct Ambiguous {}
mod check {
pub struct Ambiguous {}
fn check() {
edition_imports_2015::gen_ambiguous!(); // OK
}
}
fn main() {}