2018-11-17 18:25:59 -06:00
|
|
|
// edition:2015
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! gen_imports { () => {
|
|
|
|
use import::Path;
|
2018-11-24 06:07:03 -06:00
|
|
|
use std::collections::LinkedList;
|
2018-11-17 18:25:59 -06:00
|
|
|
|
|
|
|
fn check_absolute() {
|
|
|
|
::absolute::Path;
|
2018-11-24 15:25:03 -06:00
|
|
|
::std::collections::LinkedList::<u8>::new();
|
2018-11-17 18:25:59 -06:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! gen_glob { () => {
|
|
|
|
use *;
|
|
|
|
}}
|
2018-11-24 06:07:03 -06:00
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! gen_gated { () => {
|
|
|
|
fn check_gated() {
|
|
|
|
enum E { A }
|
|
|
|
use E::*;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! gen_ambiguous { () => {
|
|
|
|
use Ambiguous;
|
2018-11-24 15:25:03 -06:00
|
|
|
type A = ::edition_imports_2015::Path;
|
2018-11-24 06:07:03 -06:00
|
|
|
}}
|