]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/missing_lifetime_args.rs
1 #![feature(generic_associated_types)]
2 //~^ WARNING the feature `generic_associated_types`
8 struct Foo
<'a
, 'b
, 'c
> {
14 fn foo
<'c
, 'd
>(_arg
: Box
<dyn X
<Y
= (&'c
u32, &'d
u32)>>) {}
15 //~^ ERROR missing generics for associated type
17 fn bar
<'a
, 'b
, 'c
>(_arg
: Foo
<'a
, 'b
>) {}
18 //~^ ERROR this struct takes 3 lifetime arguments but 2 lifetime
20 fn f
<'a
>(_arg
: Foo
<'a
>) {}
21 //~^ ERROR this struct takes 3 lifetime arguments but 1 lifetime