]> git.proxmox.com Git - rustc.git/blame - src/test/ui/editions/edition-imports-2015.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / editions / edition-imports-2015.rs
CommitLineData
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]
7extern crate edition_imports_2018;
8
9mod 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
22mod check_glob {
23 gen_glob!(); //~ ERROR cannot glob-import all possible crates
24}
25
26fn main() {}