|
1 | 1 | error: expected one argument to 'contains' |
2 | 2 | --> tests/trybuild/fail/filter_contains_wrong_args.rs:12:28 |
3 | 3 | | |
4 | | -12 | let _f = filter!(Post, tags.contains("a", "b")); |
| 4 | +12 | let _f = filter!(Post, tags.contains(1, 2)); |
5 | 5 | | ^^^^ |
6 | | - |
7 | | -error[E0277]: the trait bound `Vec<String>: ToSql` is not satisfied |
8 | | - --> tests/trybuild/fail/filter_contains_wrong_args.rs:3:1 |
9 | | - | |
10 | | -3 | #[model] |
11 | | - | ^^^^^^^^ the trait `ToSql` is not implemented for `Vec<String>` |
12 | | - | |
13 | | - = help: the trait `ToSql` is implemented for `Vec<u8>` |
14 | | - = note: required for `SqlVal` to implement `From<Vec<String>>` |
15 | | - = note: required for `Vec<String>` to implement `Into<SqlVal>` |
16 | | -note: required by a bound in `FieldExpr` |
17 | | - --> $WORKSPACE/butane_core/src/query/fieldexpr.rs |
18 | | - | |
19 | | - | pub struct FieldExpr<T> |
20 | | - | --------- required by a bound in this struct |
21 | | - | where |
22 | | - | T: Into<SqlVal>, |
23 | | - | ^^^^^^^^^^^^ required by this bound in `FieldExpr` |
24 | | - = note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info) |
25 | | - |
26 | | -error[E0277]: the trait bound `Vec<String>: FieldType` is not satisfied |
27 | | - --> tests/trybuild/fail/filter_contains_wrong_args.rs:7:11 |
28 | | - | |
29 | | -7 | tags: Vec<String>, |
30 | | - | ^^^^^^^^^^^ the trait `FieldType` is not implemented for `Vec<String>` |
31 | | - | |
32 | | - = help: the trait `FieldType` is implemented for `Vec<u8>` |
33 | | - |
34 | | -error[E0277]: the trait bound `Vec<String>: FromSql` is not satisfied |
35 | | - --> tests/trybuild/fail/filter_contains_wrong_args.rs:3:1 |
36 | | - | |
37 | | -3 | #[model] |
38 | | - | ^^^^^^^^ the trait `FromSql` is not implemented for `Vec<String>` |
39 | | - | |
40 | | - = help: the trait `FromSql` is implemented for `Vec<u8>` |
41 | | - = note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info) |
42 | | - |
43 | | -error[E0277]: the trait bound `Vec<String>: ToSql` is not satisfied |
44 | | - --> tests/trybuild/fail/filter_contains_wrong_args.rs:3:1 |
45 | | - | |
46 | | -3 | #[model] |
47 | | - | ^^^^^^^^ the trait `ToSql` is not implemented for `Vec<String>` |
48 | | - | |
49 | | - = help: the trait `ToSql` is implemented for `Vec<u8>` |
50 | | - = note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info) |
51 | | - |
52 | | -error[E0599]: the function or associated item `new` exists for struct `FieldExpr<Vec<String>>`, but its trait bounds were not satisfied |
53 | | - --> tests/trybuild/fail/filter_contains_wrong_args.rs:3:1 |
54 | | - | |
55 | | -3 | #[model] |
56 | | - | ^^^^^^^^ function or associated item cannot be called on `FieldExpr<Vec<String>>` due to unsatisfied trait bounds |
57 | | - | |
58 | | - = note: the following trait bounds were not satisfied: |
59 | | - `Vec<String>: ToSql` |
60 | | - which is required by `Vec<String>: Into<SqlVal>` |
61 | | - = note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments