Skip to content

Commit c07124e

Browse files
committed
These should not both compile but they do
1 parent 8ec05c1 commit c07124e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

diesel/src/macros/insertable.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,8 @@ macro_rules! _Insertable {
201201
}
202202

203203
} __diesel_parse_as_item! {
204-
impl<$($lifetime,)* 'insert, Op, Ret> $crate::query_builder::insert_statement::IntoInsertStatement<$table_name::table, Op, Ret>
205-
for &'insert $struct_ty where
206-
$('insert: $lifetime,)*
207-
$crate::query_builder::insert_statement::InsertStatement<$table_name::table, &'insert $struct_ty, Op, Ret>: $crate::query_builder::AsQuery,
204+
impl<$($lifetime: 'insert,)* 'insert, Op, Ret> $crate::query_builder::insert_statement::IntoInsertStatement<$table_name::table, Op, Ret>
205+
for &'insert $struct_ty
208206
{
209207
type InsertStatement = $crate::query_builder::insert_statement::InsertStatement<$table_name::table, Self, Op, Ret>;
210208

0 commit comments

Comments
 (0)