|
| 1 | +error: expected type, found `,` |
| 2 | + --> $DIR/issue-86053-1.rs:10:47 |
| 3 | + | |
| 4 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 5 | + | ^ expected type |
| 6 | + |
| 7 | +error: unexpected `self` parameter in function |
| 8 | + --> $DIR/issue-86053-1.rs:10:51 |
| 9 | + | |
| 10 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 11 | + | ^^^^ must be the first parameter of an associated function |
| 12 | + |
| 13 | +error: unexpected `self` parameter in function |
| 14 | + --> $DIR/issue-86053-1.rs:10:58 |
| 15 | + | |
| 16 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 17 | + | ^^^^ must be the first parameter of an associated function |
| 18 | + |
| 19 | +error: unexpected `self` parameter in function |
| 20 | + --> $DIR/issue-86053-1.rs:10:67 |
| 21 | + | |
| 22 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 23 | + | ^^^^ must be the first parameter of an associated function |
| 24 | + |
| 25 | +error: unexpected `self` parameter in function |
| 26 | + --> $DIR/issue-86053-1.rs:11:5 |
| 27 | + | |
| 28 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 29 | + | ^^^^ must be the first parameter of an associated function |
| 30 | + |
| 31 | +error: unexpected `self` parameter in function |
| 32 | + --> $DIR/issue-86053-1.rs:11:20 |
| 33 | + | |
| 34 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 35 | + | ^^^^ must be the first parameter of an associated function |
| 36 | + |
| 37 | +error: unexpected `self` parameter in function |
| 38 | + --> $DIR/issue-86053-1.rs:11:29 |
| 39 | + | |
| 40 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 41 | + | ^^^^ must be the first parameter of an associated function |
| 42 | + |
| 43 | +error: `...` must be the last argument of a C-variadic function |
| 44 | + --> $DIR/issue-86053-1.rs:11:12 |
| 45 | + | |
| 46 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 47 | + | ^^^^ |
| 48 | + |
| 49 | +error: only foreign or `unsafe extern "C"` functions may be C-variadic |
| 50 | + --> $DIR/issue-86053-1.rs:11:12 |
| 51 | + | |
| 52 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 53 | + | ^^^^ |
| 54 | + |
| 55 | +error: only foreign or `unsafe extern "C"` functions may be C-variadic |
| 56 | + --> $DIR/issue-86053-1.rs:11:36 |
| 57 | + | |
| 58 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 59 | + | ^^^^ |
| 60 | + |
| 61 | +error[E0412]: cannot find type `F` in this scope |
| 62 | + --> $DIR/issue-86053-1.rs:11:48 |
| 63 | + | |
| 64 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 65 | + | ^ |
| 66 | + | |
| 67 | + ::: $SRC_DIR/core/src/ops/function.rs:LL:COL |
| 68 | + | |
| 69 | +LL | pub trait Fn<Args>: FnMut<Args> { |
| 70 | + | ------------------------------- similarly named trait `Fn` defined here |
| 71 | + | |
| 72 | +help: a trait with a similar name exists |
| 73 | + | |
| 74 | +LL | self , ... , self , self , ... ) where Fn : FnOnce ( & 'a & 'b usize ) { |
| 75 | + | ^^ |
| 76 | +help: you might be missing a type parameter |
| 77 | + | |
| 78 | +LL | fn ordering4 < 'a , 'b, F > ( a : , self , self , self , |
| 79 | + | ^^^ |
| 80 | + |
| 81 | +error[E0491]: in type `&'a &'b usize`, reference has a longer lifetime than the data it references |
| 82 | + --> $DIR/issue-86053-1.rs:11:52 |
| 83 | + | |
| 84 | +LL | self , ... , self , self , ... ) where F : FnOnce ( & 'a & 'b usize ) { |
| 85 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 86 | + | |
| 87 | +note: the pointer is valid for the lifetime `'a` as defined on the function body at 10:16 |
| 88 | + --> $DIR/issue-86053-1.rs:10:16 |
| 89 | + | |
| 90 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 91 | + | ^^ |
| 92 | +note: but the referenced data is only valid for the lifetime `'b` as defined on the function body at 10:21 |
| 93 | + --> $DIR/issue-86053-1.rs:10:21 |
| 94 | + | |
| 95 | +LL | fn ordering4 < 'a , 'b > ( a : , self , self , self , |
| 96 | + | ^^ |
| 97 | + |
| 98 | +error: aborting due to 12 previous errors |
| 99 | + |
| 100 | +Some errors have detailed explanations: E0412, E0491. |
| 101 | +For more information about an error, try `rustc --explain E0412`. |
0 commit comments