2018-11-17 18:25:59 -06:00
|
|
|
// edition:2018
|
|
|
|
// aux-build:edition-imports-2015.rs
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate edition_imports_2015;
|
|
|
|
|
|
|
|
mod import {
|
|
|
|
pub struct Path;
|
|
|
|
}
|
|
|
|
mod absolute {
|
|
|
|
pub struct Path;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod check {
|
|
|
|
gen_imports!(); // OK
|
|
|
|
|
|
|
|
fn check() {
|
|
|
|
Path;
|
2018-11-24 06:07:03 -06:00
|
|
|
LinkedList::<u8>::new();
|
2018-11-17 18:25:59 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod check_glob {
|
2018-11-24 15:25:03 -06:00
|
|
|
gen_glob!(); //~ ERROR cannot glob-import all possible crates
|
2018-11-17 18:25:59 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|