]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-91883.stderr
Rollup merge of #104024 - noeddl:unused-must-use, r=compiler-errors
[rust.git] / src / test / 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    |                        ^^^^^^^^^^^^^^^- help: try copying these clauses from the trait: `where 'db: 'tx, Self: 'tx`
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
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0478`.