@@ -15,15 +15,6 @@ error[E0412]: cannot find type `ConnImpl` in this scope
1515LL | async fn foo(&'a self, key: &'b T) -> (&'a ConnImpl, &'b T);
1616 | ^^^^^^^^ not found in this scope
1717
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-
2718error[E0308]: mismatched types
2819 --> $DIR/return-not-existing-pair.rs:11:42
2920 |
@@ -33,7 +24,7 @@ LL | async fn foo(_: T) -> (&'a U, &'b T) {}
3324 = note: expected tuple `(&'a U, &'b T)`
3425 found unit type `()`
3526
36- error: aborting due to 4 previous errors
27+ error: aborting due to 3 previous errors
3728
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