rust-clippy/tests/ui-toml/disallowed_macros/auxiliary/macros.rs

33 lines
367 B
Rust
Raw Normal View History

2022-10-05 13:44:01 +00:00
#[macro_export]
macro_rules! expr {
() => {
1
};
}
#[macro_export]
macro_rules! stmt {
() => {
let _x = ();
};
}
#[macro_export]
macro_rules! ty {
() => { &'static str };
}
#[macro_export]
macro_rules! pat {
() => {
_
};
}
#[macro_export]
macro_rules! item {
() => {
const ITEM: usize = 1;
};
}