]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/self-without-lifetime-constraint.stderr
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops, r=lcnr
[rust.git] / tests / ui / traits / self-without-lifetime-constraint.stderr
1 error: `impl` item signature doesn't match `trait` item signature
2   --> $DIR/self-without-lifetime-constraint.rs:45:5
3    |
4 LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
5    |     -------------------------------------------------------------------- expected `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), FromSqlError>`
6 ...
7 LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<&str, &&str> {
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), FromSqlError>`
9    |
10    = note: expected signature `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), FromSqlError>`
11               found signature `fn(ValueRef<'1>) -> Result<(&'1 str, &'1 &'1 str), FromSqlError>`
12 help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13   --> $DIR/self-without-lifetime-constraint.rs:41:60
14    |
15 LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>;
16    |                                                            ^^^^ consider borrowing this type parameter in the trait
17
18 error: aborting due to previous error
19