]> git.lizzy.rs Git - rust.git/blob - tests/ui/editions/edition-imports-2018.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / editions / edition-imports-2018.rs
1 // edition:2018
2 // aux-build:edition-imports-2015.rs
3
4 #[macro_use]
5 extern crate edition_imports_2015;
6
7 mod import {
8     pub struct Path;
9 }
10 mod absolute {
11     pub struct Path;
12 }
13
14 mod check {
15     gen_imports!(); // OK
16
17     fn check() {
18         Path;
19         LinkedList::<u8>::new();
20     }
21 }
22
23 mod check_glob {
24     gen_glob!(); //~ ERROR cannot glob-import all possible crates
25 }
26
27 fn main() {}