]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-91883.stderr
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / generic-associated-types / issue-91883.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/issue-91883.rs:30:24
3    |
4 LL |     type Cursor<'tx>: Cursor<'tx>
5    |     ----------------------------- definition of `Cursor` from trait
6 ...
7 LL |     type Cursor<'tx> = CursorImpl<'tx>;
8    |                        ^^^^^^^^^^^^^^^
9    |
10 note: lifetime parameter instantiated with the lifetime `'db` as defined here
11   --> $DIR/issue-91883.rs:29:6
12    |
13 LL | impl<'db> Transaction<'db> for TransactionImpl<'db> {
14    |      ^^^
15 note: but lifetime parameter must outlive the lifetime `'tx` as defined here
16   --> $DIR/issue-91883.rs:30:17
17    |
18 LL |     type Cursor<'tx> = CursorImpl<'tx>;
19    |                 ^^^
20 help: copy the `where` clause predicates from the trait
21    |
22 LL |     type Cursor<'tx> = CursorImpl<'tx> where 'db: 'tx, Self: 'tx;
23    |                                        +++++++++++++++++++++++++
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0478`.