mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
22 lines
337 B
Rust
22 lines
337 B
Rust
//@ edition:2015
|
|
|
|
#[macro_export]
|
|
macro_rules! generate_trait_2015_ident {
|
|
($Type: ident) => {
|
|
trait Trait1 {
|
|
fn method($Type) {}
|
|
}
|
|
};
|
|
}
|
|
|
|
#[macro_export]
|
|
macro_rules! generate_trait_2015_tt {
|
|
($Type: tt) => {
|
|
trait Trait2 {
|
|
fn method($Type) {}
|
|
}
|
|
};
|
|
}
|
|
|
|
fn main() {}
|