diff options
| author | Vincent Prouillet | 2017-02-14 12:23:19 +0900 |
|---|---|---|
| committer | Vincent Prouillet | 2017-02-14 12:23:19 +0900 |
| commit | aa2218190f7d0c0346944c10fb54a80641fdd41b (patch) | |
| tree | 85f85f81e734ba244d899f3f1f0e729cfb978561 /validator_derive/tests/compile-fail/length | |
| parent | e361c205979fe108b7fc7795c60b02fb0aa1c580 (diff) | |
| download | validator-aa2218190f7d0c0346944c10fb54a80641fdd41b.tar.bz2 | |
Fix compile fail tests
Diffstat (limited to 'validator_derive/tests/compile-fail/length')
4 files changed, 4 insertions, 4 deletions
diff --git a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs index 240fb64..02b2e59 100644 --- a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs +++ b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs @@ -5,7 +5,7 @@ extern crate validator; use validator::Validate; #[derive(Validate)] -//~^ ERROR: custom derive attribute panicked +//~^ ERROR: proc-macro derive panicked //~^^ HELP: Invalid attribute #[validate] on field `s`: both `equal` and `min` or `max` have been set in `length` validator: probably a mistake struct Test { #[validate(length(min = 1, equal = 2))] diff --git a/validator_derive/tests/compile-fail/length/no_args.rs b/validator_derive/tests/compile-fail/length/no_args.rs index bd54d78..bab6c4a 100644 --- a/validator_derive/tests/compile-fail/length/no_args.rs +++ b/validator_derive/tests/compile-fail/length/no_args.rs @@ -3,7 +3,7 @@ extern crate validator; use validator::Validate; #[derive(Validate)] -//~^ ERROR: custom derive attribute panicked +//~^ ERROR: proc-macro derive panicked //~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `length` requires at least 1 argument out of `min`, `max` and `equal` struct Test { #[validate(length())] diff --git a/validator_derive/tests/compile-fail/length/unknown_arg.rs b/validator_derive/tests/compile-fail/length/unknown_arg.rs index da57749..9678205 100644 --- a/validator_derive/tests/compile-fail/length/unknown_arg.rs +++ b/validator_derive/tests/compile-fail/length/unknown_arg.rs @@ -5,7 +5,7 @@ extern crate validator; use validator::Validate; #[derive(Validate)] -//~^ ERROR: custom derive attribute panicked +//~^ ERROR: proc-macro derive panicked //~^^ HELP: Invalid attribute #[validate] on field `s`: unknown argument `eq` for validator `length` (it only has `min`, `max`, `equal`) struct Test { #[validate(length(eq = 2))] diff --git a/validator_derive/tests/compile-fail/length/wrong_type.rs b/validator_derive/tests/compile-fail/length/wrong_type.rs index 3103ecc..365675f 100644 --- a/validator_derive/tests/compile-fail/length/wrong_type.rs +++ b/validator_derive/tests/compile-fail/length/wrong_type.rs @@ -3,7 +3,7 @@ extern crate validator; use validator::Validate; #[derive(Validate)] -//~^ ERROR: custom derive attribute panicked +//~^ ERROR: proc-macro derive panicked //~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `length` can only be used on types `String`, `&str` or `Vec` but found `usize` struct Test { #[validate(length())] |
