]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-builtin-bound-type-parameters.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / typeck-builtin-bound-type-parameters.stderr
1 error[E0107]: wrong number of type arguments: expected 0, found 1
2   --> $DIR/typeck-builtin-bound-type-parameters.rs:11:16
3    |
4 LL | fn foo1<T:Copy<U>, U>(x: T) {}
5    |                ^ unexpected type argument
6
7 error[E0107]: wrong number of type arguments: expected 0, found 1
8   --> $DIR/typeck-builtin-bound-type-parameters.rs:14:19
9    |
10 LL | trait Trait: Copy<Send> {}
11    |                   ^^^^ unexpected type argument
12
13 error[E0107]: wrong number of type arguments: expected 0, found 1
14   --> $DIR/typeck-builtin-bound-type-parameters.rs:17:26
15    |
16 LL | struct MyStruct1<T: Copy<T>>;
17    |                          ^ unexpected type argument
18
19 error[E0107]: wrong number of lifetime arguments: expected 0, found 1
20   --> $DIR/typeck-builtin-bound-type-parameters.rs:20:30
21    |
22 LL | struct MyStruct2<'a, T: Copy<'a>>;
23    |                              ^^ unexpected lifetime argument
24
25 error[E0107]: wrong number of lifetime arguments: expected 0, found 1
26   --> $DIR/typeck-builtin-bound-type-parameters.rs:24:20
27    |
28 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
29    |                    ^^ unexpected lifetime argument
30
31 error[E0107]: wrong number of type arguments: expected 0, found 1
32   --> $DIR/typeck-builtin-bound-type-parameters.rs:24:24
33    |
34 LL | fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
35    |                        ^ unexpected type argument
36
37 error: aborting due to 6 previous errors
38
39 For more information about this error, try `rustc --explain E0107`.