]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-8521.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-8521.rs
1 // check-pass
2 trait Foo1 {}
3
4 trait A {}
5
6 macro_rules! foo1(($t:path) => {
7 impl<T: $t> Foo1 for T {}
8 });
9
10 foo1!(A);
11
12 trait Foo2 {}
13
14 trait B<T> {}
15
16 #[allow(unused)]
17 struct C {}
18
19 macro_rules! foo2(($t:path) => {
20 impl<T: $t> Foo2 for T {}
21 });
22
23 foo2!(B<C>);
24
25 fn main() {}