]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[rust.git] / src / test / ui / generic-associated-types / gat-trait-path-generic-type-arg.stderr
1 error[E0403]: the name `T1` is already used for a generic parameter in this item's generic parameters
2   --> $DIR/gat-trait-path-generic-type-arg.rs:10:12
3    |
4 LL | impl <T, T1> Foo for T {
5    |          -- first use of `T1`
6 LL |     type F<T1> = &[u8];
7    |            ^^ already used
8
9 error[E0106]: missing lifetime specifier
10   --> $DIR/gat-trait-path-generic-type-arg.rs:10:18
11    |
12 LL |     type F<T1> = &[u8];
13    |                  ^ expected named lifetime parameter
14    |
15 help: consider introducing a named lifetime parameter
16    |
17 LL |     type F<'a, T1> = &'a [u8];
18    |            +++        ++
19
20 error: aborting due to 2 previous errors
21
22 Some errors have detailed explanations: E0106, E0403.
23 For more information about an error, try `rustc --explain E0106`.