Skip to content

Commit 70e4089

Browse files
committed
fix literal_array_to_literal test
1 parent a674338 commit 70e4089

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../fail-stable/literal_array_to_literal.rs

postgres-macros/tests/fail/literal_array_to_literal.stderr renamed to postgres-macros/tests/fail-nightly/literal_array_to_literal.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `String: Query<sqlm_postgres::types::Array<Vec<String>>>` is not satisfied
2-
--> tests/fail/literal_array_to_literal.rs:6:10
2+
--> tests/fail-nightly/literal_array_to_literal.rs:6:10
33
|
44
6 | .await
55
| -^^^^^
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
error[E0277]: the trait bound `String: Query<sqlm_postgres::types::Array<Vec<String>>>` is not satisfied
2+
--> tests/fail-stable/literal_array_to_literal.rs:6:10
3+
|
4+
6 | .await
5+
| -^^^^^
6+
| ||
7+
| |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`
8+
| help: remove the `.await`
9+
|
10+
= help: the following other types implement trait `Query<Cols>`:
11+
<Vec<u8> as Query<Primitive<Bytea>>>
12+
<Vec<Vec<u8>> as Query<Primitive<Bytea>>>
13+
<Vec<Vec<u8>> as Query<sqlm_postgres::types::Array<Vec<Bytea>>>>
14+
<Vec<T> as Query<Struct<Cols>>>
15+
<Vec<T> as Query<Primitive<<T as SqlType>::Type>>>
16+
<Vec<T> as Query<sqlm_postgres::types::Array<Vec<<T as SqlType>::Type>>>>
17+
<Option<Vec<u8>> as Query<Primitive<Bytea>>>
18+
<Option<T> as Query<Struct<Cols>>>
19+
and $N others
20+
= note: required for `Sql<'_, sqlm_postgres::types::Array<Vec<String>>, String>` to implement `IntoFuture`

0 commit comments

Comments
 (0)