]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck-builtin-bound-type-parameters.stderr
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / typeck / typeck-builtin-bound-type-parameters.stderr
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
3    |
4 LL | fn foo1<T:Copy<U>, U>(x: T) {}
5    |           ^^^^--- help: remove these generics
6    |           |
7    |           expected 0 generic arguments
8
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
11    |
12 LL | trait Trait: Copy<dyn Send> {}
13    |              ^^^^---------- help: remove these generics
14    |              |
15    |              expected 0 generic arguments
16
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
19    |
20 LL | struct MyStruct1<T: Copy<T>>;
21    |                     ^^^^--- help: remove these generics
22    |                     |
23    |                     expected 0 generic arguments
24
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
27    |
28 LL | struct MyStruct2<'a, T: Copy<'a>>;
29    |                         ^^^^---- help: remove these generics
30    |                         |
31    |                         expected 0 lifetime arguments
32
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
35    |
36 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
37    |               ^^^^ -- help: remove this lifetime argument
38    |               |
39    |               expected 0 lifetime arguments
40
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
43    |
44 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
45    |               ^^^^     - help: remove this generic argument
46    |               |
47    |               expected 0 generic arguments
48
49 error: aborting due to 6 previous errors
50
51 For more information about this error, try `rustc --explain E0107`.