From 70e4089acfe8f9af0e351e639a9d8539b5dc290f Mon Sep 17 00:00:00 2001 From: Markus Ast Date: Tue, 4 Jun 2024 10:29:27 +0200 Subject: [PATCH] fix literal_array_to_literal test --- .../fail-nightly/literal_array_to_literal.rs | 1 + .../literal_array_to_literal.stderr | 2 +- .../literal_array_to_literal.rs | 0 .../literal_array_to_literal.stderr | 20 +++++++++++++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 120000 postgres-macros/tests/fail-nightly/literal_array_to_literal.rs rename postgres-macros/tests/{fail => fail-nightly}/literal_array_to_literal.stderr (94%) rename postgres-macros/tests/{fail => fail-stable}/literal_array_to_literal.rs (100%) create mode 100644 postgres-macros/tests/fail-stable/literal_array_to_literal.stderr diff --git a/postgres-macros/tests/fail-nightly/literal_array_to_literal.rs b/postgres-macros/tests/fail-nightly/literal_array_to_literal.rs new file mode 120000 index 0000000..0df4eee --- /dev/null +++ b/postgres-macros/tests/fail-nightly/literal_array_to_literal.rs @@ -0,0 +1 @@ +../fail-stable/literal_array_to_literal.rs \ No newline at end of file diff --git a/postgres-macros/tests/fail/literal_array_to_literal.stderr b/postgres-macros/tests/fail-nightly/literal_array_to_literal.stderr similarity index 94% rename from postgres-macros/tests/fail/literal_array_to_literal.stderr rename to postgres-macros/tests/fail-nightly/literal_array_to_literal.stderr index 1f411cd..5b2a77d 100644 --- a/postgres-macros/tests/fail/literal_array_to_literal.stderr +++ b/postgres-macros/tests/fail-nightly/literal_array_to_literal.stderr @@ -1,5 +1,5 @@ error[E0277]: the trait bound `String: Query>>` is not satisfied - --> tests/fail/literal_array_to_literal.rs:6:10 + --> tests/fail-nightly/literal_array_to_literal.rs:6:10 | 6 | .await | -^^^^^ diff --git a/postgres-macros/tests/fail/literal_array_to_literal.rs b/postgres-macros/tests/fail-stable/literal_array_to_literal.rs similarity index 100% rename from postgres-macros/tests/fail/literal_array_to_literal.rs rename to postgres-macros/tests/fail-stable/literal_array_to_literal.rs diff --git a/postgres-macros/tests/fail-stable/literal_array_to_literal.stderr b/postgres-macros/tests/fail-stable/literal_array_to_literal.stderr new file mode 100644 index 0000000..da23344 --- /dev/null +++ b/postgres-macros/tests/fail-stable/literal_array_to_literal.stderr @@ -0,0 +1,20 @@ +error[E0277]: the trait bound `String: Query>>` is not satisfied + --> tests/fail-stable/literal_array_to_literal.rs:6:10 + | +6 | .await + | -^^^^^ + | || + | |the trait `Query>>` is not implemented for `String`, which is required by `Sql<'_, sqlm_postgres::types::Array>, _>: IntoFuture` + | help: remove the `.await` + | + = help: the following other types implement trait `Query`: + as Query>> + > as Query>> + > as Query>>> + as Query>> + as Query::Type>>> + as Query::Type>>>> + > as Query>> + as Query>> + and $N others + = note: required for `Sql<'_, sqlm_postgres::types::Array>, String>` to implement `IntoFuture`