Skip to content

Commit

Permalink
fix literal_array_to_literal test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa committed Jun 4, 2024
1 parent a674338 commit 70e4089
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `String: Query<sqlm_postgres::types::Array<Vec<String>>>` is not satisfied
--> tests/fail/literal_array_to_literal.rs:6:10
--> tests/fail-nightly/literal_array_to_literal.rs:6:10
|
6 | .await
| -^^^^^
Expand Down
20 changes: 20 additions & 0 deletions postgres-macros/tests/fail-stable/literal_array_to_literal.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
error[E0277]: the trait bound `String: Query<sqlm_postgres::types::Array<Vec<String>>>` is not satisfied
--> tests/fail-stable/literal_array_to_literal.rs:6:10
|
6 | .await
| -^^^^^
| ||
| |the trait `Query<sqlm_postgres::types::Array<Vec<String>>>` is not implemented for `String`, which is required by `Sql<'_, sqlm_postgres::types::Array<Vec<String>>, _>: IntoFuture`
| help: remove the `.await`
|
= help: the following other types implement trait `Query<Cols>`:
<Vec<u8> as Query<Primitive<Bytea>>>
<Vec<Vec<u8>> as Query<Primitive<Bytea>>>
<Vec<Vec<u8>> as Query<sqlm_postgres::types::Array<Vec<Bytea>>>>
<Vec<T> as Query<Struct<Cols>>>
<Vec<T> as Query<Primitive<<T as SqlType>::Type>>>
<Vec<T> as Query<sqlm_postgres::types::Array<Vec<<T as SqlType>::Type>>>>
<Option<Vec<u8>> as Query<Primitive<Bytea>>>
<Option<T> as Query<Struct<Cols>>>
and $N others
= note: required for `Sql<'_, sqlm_postgres::types::Array<Vec<String>>, String>` to implement `IntoFuture`

0 comments on commit 70e4089

Please sign in to comment.