@@ -15,15 +15,6 @@ error[E0412]: cannot find type `ConnImpl` in this scope
15
15
LL | async fn foo(&'a self, key: &'b T) -> (&'a ConnImpl, &'b T);
16
16
| ^^^^^^^^ not found in this scope
17
17
18
- error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
19
- --> $DIR/return-not-existing-pair.rs:11:5
20
- |
21
- LL | async fn foo(&'a self, key: &'b T) -> (&'a ConnImpl, &'b T);
22
- | ------------------------------------------------------------ `&self` used in trait
23
- ...
24
- LL | async fn foo(_: T) -> (&'a U, &'b T) {}
25
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&self` in impl
26
-
27
18
error[E0308]: mismatched types
28
19
--> $DIR/return-not-existing-pair.rs:11:42
29
20
|
@@ -33,7 +24,7 @@ LL | async fn foo(_: T) -> (&'a U, &'b T) {}
33
24
= note: expected tuple `(&'a U, &'b T)`
34
25
found unit type `()`
35
26
36
- error: aborting due to 4 previous errors
27
+ error: aborting due to 3 previous errors
37
28
38
- Some errors have detailed explanations: E0186, E0308, E0412, E0726.
39
- For more information about an error, try `rustc --explain E0186 `.
29
+ Some errors have detailed explanations: E0308, E0412, E0726.
30
+ For more information about an error, try `rustc --explain E0308 `.
0 commit comments