|
1 | 1 | error: unconstrained opaque type
|
2 |
| - --> $DIR/issue-86800.rs:31:34 |
| 2 | + --> $DIR/issue-86800.rs:25:34 |
3 | 3 | |
|
4 | 4 | LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 |
| -error: internal compiler error[E0792]: expected generic lifetime parameter, found `'_` |
8 |
| - --> $DIR/issue-86800.rs:39:5 |
| 7 | + = note: `TransactionFuture` must be used in combination with a concrete type within the same module |
| 8 | + |
| 9 | +error[E0792]: expected generic lifetime parameter, found `'_` |
| 10 | + --> $DIR/issue-86800.rs:34:5 |
9 | 11 | |
|
10 | 12 | LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
|
11 | 13 | | --- this generic parameter must be used with a generic lifetime parameter
|
12 | 14 | ...
|
13 | 15 | LL | f
|
14 | 16 | | ^
|
15 | 17 |
|
16 |
| -error: the compiler unexpectedly panicked. this is a bug. |
| 18 | +error[E0792]: expected generic lifetime parameter, found `'_` |
| 19 | + --> $DIR/issue-86800.rs:42:5 |
| 20 | + | |
| 21 | +LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>; |
| 22 | + | --- this generic parameter must be used with a generic lifetime parameter |
| 23 | +... |
| 24 | +LL | / { |
| 25 | +LL | | |
| 26 | +LL | | let mut conn = Connection {}; |
| 27 | +LL | | let mut transaction = TestTransaction { conn: &mut conn }; |
| 28 | +LL | | f(&mut transaction).await |
| 29 | +LL | | } |
| 30 | + | |_____^ |
| 31 | + |
| 32 | +error: aborting due to 3 previous errors |
17 | 33 |
|
18 |
| -query stack during panic: |
19 |
| -#0 [mir_borrowck] borrow-checking `execute_transaction_fut` |
20 |
| -#1 [type_of_opaque] computing type of opaque `execute_transaction_fut::{opaque#0}` |
21 |
| -end of query stack |
| 34 | +For more information about this error, try `rustc --explain E0792`. |
0 commit comments