fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.2 KiB81 linesraw
1error: expected type, found `,`
2  --> $DIR/issue-86053-1.rs:10:47
3   |
4LL | fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
5   |                                               ^ expected type
6
7error: unexpected `self` parameter in function
8  --> $DIR/issue-86053-1.rs:10:51
9   |
10LL | fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
11   |                                                   ^^^^ must be the first parameter of an associated function
12
13error: unexpected `self` parameter in function
14  --> $DIR/issue-86053-1.rs:10:58
15   |
16LL | fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
17   |                                                          ^^^^ must be the first parameter of an associated function
18
19error: unexpected `self` parameter in function
20  --> $DIR/issue-86053-1.rs:10:67
21   |
22LL | fn ordering4 < 'a , 'b     > ( a :            ,   self , self ,   self ,
23   |                                                                   ^^^^ must be the first parameter of an associated function
24
25error: unexpected `self` parameter in function
26  --> $DIR/issue-86053-1.rs:11:5
27   |
28LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
29   |     ^^^^ must be the first parameter of an associated function
30
31error: unexpected `self` parameter in function
32  --> $DIR/issue-86053-1.rs:11:20
33   |
34LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
35   |                    ^^^^ must be the first parameter of an associated function
36
37error: unexpected `self` parameter in function
38  --> $DIR/issue-86053-1.rs:11:29
39   |
40LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
41   |                             ^^^^ must be the first parameter of an associated function
42
43error: `...` must be the last argument of a C-variadic function
44  --> $DIR/issue-86053-1.rs:11:12
45   |
46LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
47   |            ^^^
48
49error: only foreign or `unsafe extern "C"` functions may be C-variadic
50  --> $DIR/issue-86053-1.rs:11:12
51   |
52LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
53   |            ^^^
54
55error: only foreign or `unsafe extern "C"` functions may be C-variadic
56  --> $DIR/issue-86053-1.rs:11:36
57   |
58LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
59   |                                    ^^^
60
61error[E0412]: cannot find type `F` in this scope
62  --> $DIR/issue-86053-1.rs:11:48
63   |
64LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
65   |                                                ^
66  --> $SRC_DIR/core/src/ops/function.rs:LL:COL
67   |
68   = note: similarly named trait `Fn` defined here
69   |
70help: a trait with a similar name exists
71   |
72LL |     self , ... ,   self ,   self , ... ) where Fn : FnOnce ( & 'a & 'b usize ) {
73   |                                                ~~
74help: you might be missing a type parameter
75   |
76LL | fn ordering4 < 'a , 'b, F     > ( a :            ,   self , self ,   self ,
77   |                       +++
78
79error: aborting due to 11 previous errors
80
81For more information about this error, try `rustc --explain E0412`.