1 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
2 --> $DIR/typeck-builtin-bound-type-parameters.rs:1:11
4 LL | fn foo1<T:Copy<U>, U>(x: T) {}
5 | ^^^^--- help: remove these generics
7 | expected 0 generic arguments
9 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
10 --> $DIR/typeck-builtin-bound-type-parameters.rs:4:14
12 LL | trait Trait: Copy<dyn Send> {}
13 | ^^^^---------- help: remove these generics
15 | expected 0 generic arguments
17 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
18 --> $DIR/typeck-builtin-bound-type-parameters.rs:7:21
20 LL | struct MyStruct1<T: Copy<T>>;
21 | ^^^^--- help: remove these generics
23 | expected 0 generic arguments
25 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
26 --> $DIR/typeck-builtin-bound-type-parameters.rs:10:25
28 LL | struct MyStruct2<'a, T: Copy<'a>>;
29 | ^^^^---- help: remove these generics
31 | expected 0 lifetime arguments
33 error[E0107]: this trait takes 0 lifetime arguments but 1 lifetime argument was supplied
34 --> $DIR/typeck-builtin-bound-type-parameters.rs:13:15
36 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
37 | ^^^^ -- help: remove this lifetime argument
39 | expected 0 lifetime arguments
41 error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
42 --> $DIR/typeck-builtin-bound-type-parameters.rs:13:15
44 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
45 | ^^^^ - help: remove this generic argument
47 | expected 0 generic arguments
49 error: aborting due to 6 previous errors
51 For more information about this error, try `rustc --explain E0107`.