diff options
Diffstat (limited to 'tests/ui/editions/auxiliary/edition-imports-2015.rs')
-rw-r--r-- | tests/ui/editions/auxiliary/edition-imports-2015.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/ui/editions/auxiliary/edition-imports-2015.rs b/tests/ui/editions/auxiliary/edition-imports-2015.rs new file mode 100644 index 000000000..c72331ca2 --- /dev/null +++ b/tests/ui/editions/auxiliary/edition-imports-2015.rs @@ -0,0 +1,31 @@ +// edition:2015 + +#[macro_export] +macro_rules! gen_imports { () => { + use import::Path; + use std::collections::LinkedList; + + fn check_absolute() { + ::absolute::Path; + ::std::collections::LinkedList::<u8>::new(); + } +}} + +#[macro_export] +macro_rules! gen_glob { () => { + use *; +}} + +#[macro_export] +macro_rules! gen_gated { () => { + fn check_gated() { + enum E { A } + use E::*; + } +}} + +#[macro_export] +macro_rules! gen_ambiguous { () => { + use Ambiguous; + type A = ::edition_imports_2015::Path; +}} |