]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-trait-path-generic-type-arg.stderr
Rollup merge of #99717 - JohnTitor:upd-docs-issue-tmpl, r=Mark-Simulacrum
[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:11:12
3    |
4 LL | impl <T, T1> Foo for T {
5    |          -- first use of `T1`
6 LL |
7 LL |     type F<T1> = &[u8];
8    |            ^^ already used
9
10 error[E0637]: `&` without an explicit lifetime name cannot be used here
11   --> $DIR/gat-trait-path-generic-type-arg.rs:11:18
12    |
13 LL |     type F<T1> = &[u8];
14    |                  ^ explicit lifetime name needed here
15
16 error[E0207]: the type parameter `T1` is not constrained by the impl trait, self type, or predicates
17   --> $DIR/gat-trait-path-generic-type-arg.rs:9:10
18    |
19 LL | impl <T, T1> Foo for T {
20    |          ^^ unconstrained type parameter
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0207, E0403, E0637.
25 For more information about an error, try `rustc --explain E0207`.