-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,47 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:2:18 | ||
--> $DIR/wrong_param_type.rs:2:50 | ||
| | ||
2 | let _query = sqlx::query!("select $1::text", 0i32); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32` | ||
| | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
| ^^^^ expected `&str`, found `i32` | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:4:18 | ||
--> $DIR/wrong_param_type.rs:4:50 | ||
| | ||
4 | let _query = sqlx::query!("select $1::text", &0i32); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found `i32` | ||
| ^ expected `str`, found `i32` | ||
| | ||
= note: expected reference `&str` | ||
found reference `&i32` | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:6:18 | ||
--> $DIR/wrong_param_type.rs:6:50 | ||
| | ||
6 | let _query = sqlx::query!("select $1::text", Some(0i32)); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32` | ||
| ^^^^ expected `&str`, found `i32` | ||
| | ||
= note: expected enum `std::option::Option<&str>` | ||
found enum `std::option::Option<i32>` | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: expected enum `Option<&str>` | ||
found enum `Option<i32>` | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:9:18 | ||
--> $DIR/wrong_param_type.rs:9:50 | ||
| | ||
9 | let _query = sqlx::query!("select $1::text", arg); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32` | ||
| | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
| ^^^ expected `&str`, found `i32` | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:12:18 | ||
--> $DIR/wrong_param_type.rs:12:50 | ||
| | ||
12 | let _query = sqlx::query!("select $1::text", arg); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&str`, found `i32` | ||
| ^^^ expected `&str`, found `i32` | ||
| | ||
= note: expected enum `std::option::Option<&str>` | ||
found enum `std::option::Option<i32>` | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: expected enum `Option<&str>` | ||
found enum `Option<i32>` | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/wrong_param_type.rs:13:18 | ||
--> $DIR/wrong_param_type.rs:13:50 | ||
| | ||
13 | let _query = sqlx::query!("select $1::text", arg.as_ref()); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found `i32` | ||
| ^^^ expected `str`, found `i32` | ||
| | ||
= note: expected enum `std::option::Option<&str>` | ||
found enum `std::option::Option<&i32>` | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: expected enum `Option<&str>` | ||
found enum `Option<&i32>` |