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