]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-8521.rs
Consider privacy more carefully when suggesting accessing fields
[rust.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() {}