summary refs log tree commit diff
path: root/src/test/ui/editions/edition-imports-2015.rs
blob: b89ca28e279db223c19a7b6a516c4e13f7aa4d8c (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
// edition:2015
// compile-flags:--extern absolute
// aux-build:edition-imports-2018.rs
// aux-build:absolute.rs

#![feature(uniform_paths)]

#[macro_use]
extern crate edition_imports_2018;

mod check {
    mod import {
        pub struct Path;
    }

    gen_imports!(); // OK

    fn check() {
        Path;
        LinkedList::<u8>::new();
    }
}

mod check_glob {
    gen_glob!(); //~ ERROR cannot glob-import all possible crates
}

fn main() {}