fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `impl` item signature doesn't match `trait` item signature 2 --> $DIR/self-without-lifetime-constraint.rs:45:5 3 | 4LL | fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>; 5 | -------------------------------------------------------------------- expected `fn(ValueRef<'1>) -> Result<(&'2 str, &'1 &'2 str), FromSqlError>` 6... 7LL | 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>` 12help: 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 | 15LL | fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self, &Self>; 16 | ^^^^ consider borrowing this type parameter in the trait 17 18error: aborting due to previous error 19