mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
19 lines
381 B
Rust
19 lines
381 B
Rust
//@ known-bug: #93237
|
|
trait Trait {
|
|
type Assoc;
|
|
}
|
|
impl Trait for () {
|
|
type Assoc = ();
|
|
}
|
|
|
|
macro_rules! m {
|
|
([#$($t:tt)*] [$($open:tt)*] [$($close:tt)*]) => {
|
|
m!{[$($t)*][$($open)*$($open)*][$($close)*$($close)*]}
|
|
};
|
|
([] [$($open:tt)*] [$($close:tt)*]) => {
|
|
fn _f() -> $($open)*()$($close)* {}
|
|
};
|
|
}
|
|
|
|
m! {[###########][impl Trait<Assoc =][>]}
|