]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / gat-trait-path-generic-type-arg.rs
1 #![feature(generic_associated_types)]
2 //~^ WARNING: the feature `generic_associated_types` is incomplete
3
4 trait Foo {
5 type F<'a>;
6
7 fn identity<'a>(t: &'a Self::F<'a>) -> &'a Self::F<'a> { t }
8 }
9
10 impl <T, T1> Foo for T {
11 type F<T1> = &[u8];
12 //~^ ERROR: the name `T1` is already used for
13 //~| ERROR: missing lifetime specifier
14 }
15
16 fn main() {}