diff options
Diffstat (limited to 'tests/ui/macros/macro-span-issue-116502.rs')
| -rw-r--r-- | tests/ui/macros/macro-span-issue-116502.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-span-issue-116502.rs b/tests/ui/macros/macro-span-issue-116502.rs new file mode 100644 index 00000000000..4c254289ee6 --- /dev/null +++ b/tests/ui/macros/macro-span-issue-116502.rs @@ -0,0 +1,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() {} |
