Skip to content

Commit

Permalink
Update trybuild output
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Aug 27, 2024
1 parent b09c99a commit 158552c
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions schemars/tests/ui/invalid_validation_attrs.stderr
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
error: expected validate regex attribute item to be of the form `regex(...)`
--> tests/ui/invalid_validation_attrs.rs:7:31
--> tests/ui/invalid_validation_attrs.rs:5:31
|
7 | pub struct Struct1(#[validate(regex, foo, length(min = 1, equal = 2, bar))] String);
5 | pub struct Struct1(#[validate(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^^^

error: expected schemars regex attribute item to be of the form `regex(...)`
--> tests/ui/invalid_validation_attrs.rs:11:31
|
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^^^
--> tests/ui/invalid_validation_attrs.rs:9:31
|
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^^^

error: schemars attribute cannot contain both `equal` and `min`
--> tests/ui/invalid_validation_attrs.rs:11:59
|
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^^^^^^^
--> tests/ui/invalid_validation_attrs.rs:9:59
|
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^^^^^^^

error: unknown item in schemars length attribute: `bar`
--> tests/ui/invalid_validation_attrs.rs:11:70
|
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^
--> tests/ui/invalid_validation_attrs.rs:9:70
|
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^

error: unknown schemars attribute `foo`
--> tests/ui/invalid_validation_attrs.rs:11:38
|
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^
--> tests/ui/invalid_validation_attrs.rs:9:38
|
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String);
| ^^^

error: unknown schemars attribute `email`
--> tests/ui/invalid_validation_attrs.rs:10:12
|
10 | #[schemars(email)]
| ^^^^^
--> tests/ui/invalid_validation_attrs.rs:8:12
|
8 | #[schemars(email)]
| ^^^^^

error: expected validate regex attribute item to be of the form `regex(...)`
--> tests/ui/invalid_validation_attrs.rs:16:9
--> tests/ui/invalid_validation_attrs.rs:14:9
|
16 | regex = "foo",
14 | regex = "foo",
| ^^^^^^^^^^^^^

error: expected validate contains attribute item to be of the form `contains(...)`
--> tests/ui/invalid_validation_attrs.rs:17:9
--> tests/ui/invalid_validation_attrs.rs:15:9
|
17 | contains = "bar",
15 | contains = "bar",
| ^^^^^^^^^^^^^^^^

error: expected schemars regex attribute item to be of the form `regex(...)`
--> tests/ui/invalid_validation_attrs.rs:29:9
--> tests/ui/invalid_validation_attrs.rs:27:9
|
29 | regex = "foo",
27 | regex = "foo",
| ^^^^^^^^^^^^^

error: expected schemars contains attribute item to be of the form `contains(...)`
--> tests/ui/invalid_validation_attrs.rs:30:9
--> tests/ui/invalid_validation_attrs.rs:28:9
|
30 | contains = "bar",
28 | contains = "bar",
| ^^^^^^^^^^^^^^^^

error: schemars attribute cannot contain both `url` and `email`
--> tests/ui/invalid_validation_attrs.rs:34:9
--> tests/ui/invalid_validation_attrs.rs:32:9
|
34 | url
32 | url
| ^^^

error: unknown schemars attribute `phone`
--> tests/ui/invalid_validation_attrs.rs:32:9
--> tests/ui/invalid_validation_attrs.rs:30:9
|
32 | phone,
30 | phone,
| ^^^^^

0 comments on commit 158552c

Please sign in to comment.