rust/tests/ui/macros/macro-span-issue-116502.rs

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

17 lines
318 B
Rust
Raw Normal View History

#![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() {}