]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-71176.rs
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / generic-associated-types / issue-71176.rs
1 trait Provider {
2     type A<'a>;
3 }
4
5 impl Provider for () {
6     type A<'a> = ();
7 }
8
9 struct Holder<B> {
10   inner: Box<dyn Provider<A = B>>,
11   //~^ ERROR: missing generics for associated type
12 }
13
14 fn main() {
15     Holder {
16         inner: Box::new(()),
17     };
18 }