]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions/auxiliary/edition-imports-2015.rs
Rollup merge of #103396 - RalfJung:pinning-closure-captures, r=dtolnay
[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();
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     type A = ::edition_imports_2015::Path;
31 }}