]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions/auxiliary/edition-imports-2015.rs
d7985d12dae619bafd2742d724a085533df89947
[rust.git] / src / test / ui / editions / auxiliary / edition-imports-2015.rs
1 // edition:2015
2
3 #[macro_export]
4 macro_rules! gen_imports { () => {
5     use import::Path;
6     use std::collections::LinkedList;
7
8     fn check_absolute() {
9         ::absolute::Path;
10         // ::std::collections::LinkedList::<u8>::new(); // FIXME
11     }
12 }}
13
14 #[macro_export]
15 macro_rules! gen_glob { () => {
16     use *;
17 }}
18
19 #[macro_export]
20 macro_rules! gen_gated { () => {
21     fn check_gated() {
22         enum E { A }
23         use E::*;
24     }
25 }}
26
27 #[macro_export]
28 macro_rules! gen_ambiguous { () => {
29     use Ambiguous;
30 }}