11error: item does not constrain `TransactionFuture::{opaque#0}`, but has it in its signature
2- --> $DIR/issue-86800.rs:28 :4
2+ --> $DIR/issue-86800.rs:23 :4
33 |
44LL | fn execute_transaction_fut<'f, F, O>(
55 | ^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: consider moving the opaque type's declaration and defining uses into a separate module
88note: this opaque type is in the signature
9- --> $DIR/issue-86800.rs:25 :34
9+ --> $DIR/issue-86800.rs:21 :34
1010 |
1111LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
1212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
1414error: item does not constrain `TransactionFuture::{opaque#0}`, but has it in its signature
15- --> $DIR/issue-86800.rs:40 :14
15+ --> $DIR/issue-86800.rs:35 :14
1616 |
1717LL | async fn do_transaction<O>(
1818 | ^^^^^^^^^^^^^^
1919 |
2020 = note: consider moving the opaque type's declaration and defining uses into a separate module
2121note: this opaque type is in the signature
22- --> $DIR/issue-86800.rs:25 :34
22+ --> $DIR/issue-86800.rs:21 :34
2323 |
2424LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
2525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
2727error: item does not constrain `TransactionFuture::{opaque#0}`, but has it in its signature
28- --> $DIR/issue-86800.rs:44:5
28+ --> $DIR/issue-86800.rs:39:31
2929 |
30- LL | / {
30+ LL | ) -> TransactionResult<O> {
31+ | _______________________________^
3132LL | |
3233LL | |
3334LL | | let mut conn = Connection {};
@@ -38,21 +39,13 @@ LL | | }
3839 |
3940 = note: consider moving the opaque type's declaration and defining uses into a separate module
4041note: this opaque type is in the signature
41- --> $DIR/issue-86800.rs:25 :34
42+ --> $DIR/issue-86800.rs:21 :34
4243 |
4344LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
4445 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4546
46- error: unconstrained opaque type
47- --> $DIR/issue-86800.rs:25:34
48- |
49- LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
50- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51- |
52- = note: `TransactionFuture` must be used in combination with a concrete type within the same module
53-
5447error[E0792]: expected generic lifetime parameter, found `'_`
55- --> $DIR/issue-86800.rs:35 :5
48+ --> $DIR/issue-86800.rs:30 :5
5649 |
5750LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
5851 | --- this generic parameter must be used with a generic lifetime parameter
@@ -61,12 +54,13 @@ LL | f
6154 | ^
6255
6356error[E0792]: expected generic lifetime parameter, found `'_`
64- --> $DIR/issue-86800.rs:44:5
57+ --> $DIR/issue-86800.rs:39:31
6558 |
6659LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
6760 | --- this generic parameter must be used with a generic lifetime parameter
6861...
69- LL | / {
62+ LL | ) -> TransactionResult<O> {
63+ | _______________________________^
7064LL | |
7165LL | |
7266LL | | let mut conn = Connection {};
@@ -75,6 +69,6 @@ LL | | f(&mut transaction).await
7569LL | | }
7670 | |_____^
7771
78- error: aborting due to 6 previous errors
72+ error: aborting due to 5 previous errors
7973
8074For more information about this error, try `rustc --explain E0792`.
0 commit comments