about summary refs log tree commit diff
path: root/tests/ui/macros/macro-span-issue-116502.rs
blob: b5ae383efca0370c29f4e6cd3c38a22fcc4888ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(dead_code)]
#![allow(unused_variables)]

fn bug() {
    macro_rules! m {
        () => {
            _ //~ ERROR the placeholder `_` is not allowed within types on item signatures for structs
            //~^ ERROR the placeholder `_` is not allowed within types on item signatures for structs
            //~| 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() {}