]>
Commit | Line | Data |
---|---|---|
13cf67c4 XL |
1 | // edition:2015 |
2 | // compile-flags:--extern absolute | |
3 | // aux-build:edition-imports-2018.rs | |
4 | // aux-build:absolute.rs | |
5 | ||
13cf67c4 XL |
6 | #[macro_use] |
7 | extern crate edition_imports_2018; | |
8 | ||
9 | mod check { | |
10 | mod import { | |
11 | pub struct Path; | |
12 | } | |
13 | ||
14 | gen_imports!(); // OK | |
15 | ||
16 | fn check() { | |
17 | Path; | |
18 | LinkedList::<u8>::new(); | |
19 | } | |
20 | } | |
21 | ||
22 | mod check_glob { | |
23 | gen_glob!(); //~ ERROR cannot glob-import all possible crates | |
24 | } | |
25 | ||
26 | fn main() {} |