rust/tests/crashes/93237.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
381 B
Rust
Raw Normal View History

//@ 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 =][>]}