error[E0560]: struct `AmountResult` has no field named `id`
--> tests/postgres/tmp-ui/multiple_models_static_mismatch.rs:6:13
|
6 | let _ = sql_forge!(
| _____________^
7 | | (
8 | | >user = support::User,
9 | | >amount = support::AmountResult,
10 | | ),
11 | | "SELECT id, name FROM users LIMIT 1",
12 | | );
| |_____^ `AmountResult` does not have this field
|
= note: all struct fields are already assigned
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sql_forge` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0560]: struct `AmountResult` has no field named `name`
--> tests/postgres/tmp-ui/multiple_models_static_mismatch.rs:6:13
|
6 | let _ = sql_forge!(
| _____________^
7 | | (
8 | | >user = support::User,
9 | | >amount = support::AmountResult,
10 | | ),
11 | | "SELECT id, name FROM users LIMIT 1",
12 | | );
| |_____^ `AmountResult` does not have this field
|
= note: all struct fields are already assigned
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sql_forge` (in Nightly builds, run with -Z macro-backtrace for more info)