1 error[E0107]: wrong number of type arguments: expected 0, found 1
2 --> $DIR/typeck-builtin-bound-type-parameters.rs:11:16
4 LL | fn foo1<T:Copy<U>, U>(x: T) {}
5 | ^ unexpected type argument
7 error[E0107]: wrong number of type arguments: expected 0, found 1
8 --> $DIR/typeck-builtin-bound-type-parameters.rs:14:19
10 LL | trait Trait: Copy<Send> {}
11 | ^^^^ unexpected type argument
13 error[E0107]: wrong number of type arguments: expected 0, found 1
14 --> $DIR/typeck-builtin-bound-type-parameters.rs:17:26
16 LL | struct MyStruct1<T: Copy<T>>;
17 | ^ unexpected type argument
19 error[E0107]: wrong number of lifetime arguments: expected 0, found 1
20 --> $DIR/typeck-builtin-bound-type-parameters.rs:20:30
22 LL | struct MyStruct2<'a, T: Copy<'a>>;
23 | ^^ unexpected lifetime argument
25 error[E0107]: wrong number of lifetime arguments: expected 0, found 1
26 --> $DIR/typeck-builtin-bound-type-parameters.rs:24:20
28 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
29 | ^^ unexpected lifetime argument
31 error[E0107]: wrong number of type arguments: expected 0, found 1
32 --> $DIR/typeck-builtin-bound-type-parameters.rs:24:24
34 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
35 | ^ unexpected type argument
37 error: aborting due to 6 previous errors
39 For more information about this error, try `rustc --explain E0107`.