diff options
Diffstat (limited to 'tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs')
-rw-r--r-- | tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs b/tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs new file mode 100644 index 000000000..3fffb30c6 --- /dev/null +++ b/tests/ui/editions/edition-imports-virtual-2015-ambiguity.rs @@ -0,0 +1,20 @@ +// 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() {} |