]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8521.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-8521.rs
1 // build-pass (FIXME(62277): could be 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() {}