-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
1 parent
57f9f1b
commit e76d847
Showing
4 changed files
with
109 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
error: expected validate regex attribute to be a string: `regex = "..."` | ||
--> $DIR/invalid_validation_attrs.rs:4:39 | ||
--> tests/ui/invalid_validation_attrs.rs:4:39 | ||
| | ||
4 | pub struct Struct1(#[validate(regex = 0, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^ | ||
|
||
error: unknown schemars attribute `foo` | ||
--> $DIR/invalid_validation_attrs.rs:7:42 | ||
--> tests/ui/invalid_validation_attrs.rs:7:42 | ||
| | ||
7 | pub struct Struct2(#[schemars(regex = 0, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
|
||
error: expected schemars regex attribute to be a string: `regex = "..."` | ||
--> $DIR/invalid_validation_attrs.rs:7:39 | ||
--> tests/ui/invalid_validation_attrs.rs:7:39 | ||
| | ||
7 | pub struct Struct2(#[schemars(regex = 0, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^ | ||
|
||
error: schemars attribute cannot contain both `equal` and `min` | ||
--> $DIR/invalid_validation_attrs.rs:7:63 | ||
error: schemars attribute cannot contain both `min` and `equal` | ||
--> tests/ui/invalid_validation_attrs.rs:7:63 | ||
| | ||
7 | pub struct Struct2(#[schemars(regex = 0, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^ | ||
|
||
error: unknown item in schemars length attribute | ||
--> $DIR/invalid_validation_attrs.rs:7:74 | ||
--> tests/ui/invalid_validation_attrs.rs:7:74 | ||
| | ||
7 | pub struct Struct2(#[schemars(regex = 0, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
|
||
error: schemars attribute cannot contain both `contains` and `regex` | ||
--> $DIR/invalid_validation_attrs.rs:26:9 | ||
error: schemars attribute cannot contain both `regex` and `contains` | ||
--> tests/ui/invalid_validation_attrs.rs:26:9 | ||
| | ||
26 | contains = "bar", | ||
| ^^^^^^^^ | ||
|
||
error: duplicate schemars attribute `regex` | ||
--> $DIR/invalid_validation_attrs.rs:27:9 | ||
--> tests/ui/invalid_validation_attrs.rs:27:9 | ||
| | ||
27 | regex(path = "baz"), | ||
| ^^^^^ | ||
|
||
error: schemars attribute cannot contain both `phone` and `email` | ||
--> $DIR/invalid_validation_attrs.rs:29:9 | ||
--> tests/ui/invalid_validation_attrs.rs:29:9 | ||
| | ||
29 | email, | ||
| ^^^^^ | ||
|
||
error: schemars attribute cannot contain both `phone` and `url` | ||
--> $DIR/invalid_validation_attrs.rs:30:9 | ||
--> tests/ui/invalid_validation_attrs.rs:30:9 | ||
| | ||
30 | url | ||
| ^^^ | ||
|
||
error[E0425]: cannot find value `foo` in this scope | ||
--> $DIR/invalid_validation_attrs.rs:12:17 | ||
--> tests/ui/invalid_validation_attrs.rs:12:17 | ||
| | ||
12 | regex = "foo", | ||
| ^^^^^ not found in this scope |
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
Oops, something went wrong.