1 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
2 --> $DIR/duplicate-type-parameter.rs:1:12
4 LL | type Foo<T,T> = Option<T>;
9 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
10 --> $DIR/duplicate-type-parameter.rs:4:14
12 LL | struct Bar<T,T>(T);
17 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
18 --> $DIR/duplicate-type-parameter.rs:7:14
20 LL | struct Baz<T,T> {
25 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
26 --> $DIR/duplicate-type-parameter.rs:12:12
33 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
34 --> $DIR/duplicate-type-parameter.rs:18:11
36 LL | fn quux<T,T>(x: T) {}
41 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
42 --> $DIR/duplicate-type-parameter.rs:21:13
44 LL | trait Qux<T,T> {}
49 error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters
50 --> $DIR/duplicate-type-parameter.rs:24:8
52 LL | impl<T,T> Qux<T,T> for Option<T> {}
57 error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
58 --> $DIR/duplicate-type-parameter.rs:24:6
60 LL | impl<T,T> Qux<T,T> for Option<T> {}
61 | ^ unconstrained type parameter
63 error: aborting due to 8 previous errors
65 Some errors have detailed explanations: E0207, E0403.
66 For more information about an error, try `rustc --explain E0207`.