rust/tests/ui/lint/auxiliary/lints-in-foreign-macros.rs

15 lines
203 B
Rust

#[macro_export]
macro_rules! bar {
() => {use std::string::ToString;}
}
#[macro_export]
macro_rules! baz {
($i:item) => ($i)
}
#[macro_export]
macro_rules! baz2 {
($($i:tt)*) => ($($i)*)
}