blob: 4c254289ee68472ed3479492346bc7fc8f84c539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![allow(dead_code)]
#![allow(unused_variables)]
fn bug() {
macro_rules! m {
() => {
_ //~ ERROR the placeholder `_` is not allowed within types on item signatures for structs
};
}
struct S<T = m!()>(m!(), T)
where
T: Trait<m!()>;
}
trait Trait<T> {}
fn main() {}
|