mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 04:06:55 +01: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() {}
|