summaryrefslogtreecommitdiffstats
path: root/src/test/ui/editions/auxiliary/edition-imports-2015.rs
blob: c72331ca2e119e62c39f3f91b9fcd33363742837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}}