]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/self-without-lifetime-constraint.stderr
Rollup merge of #87354 - Wind-River:2021_master, r=kennytm
[rust.git] / src / test / 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<'_>) -> Result<(&str, &&str), FromSqlError>`
6 ...
7 LL |     fn column_result(value: ValueRef<'_>) -> FromSqlResult<&str, &&str> {
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(ValueRef<'_>) -> Result<(&str, &&str), FromSqlError>`
9    |
10    = note: expected `fn(ValueRef<'_>) -> Result<(&str, &&str), _>`
11               found `fn(ValueRef<'_>) -> Result<(&str, &&str), _>`
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