aboutsummaryrefslogtreecommitdiffstats
path: root/validator_derive/tests/compile-fail
diff options
context:
space:
mode:
authorVincent Prouillet2017-05-26 00:49:54 +0900
committerVincent Prouillet2017-05-28 23:52:07 +0900
commitb31fd25cc5cec96ccee737ba1313c6e9f702f32a (patch)
treee71b13aea39c61b19e8aec09468a8e5c4a291e16 /validator_derive/tests/compile-fail
parent69e35d6cc905b9d7a894af7e486237e376fae939 (diff)
downloadvalidator-b31fd25cc5cec96ccee737ba1313c6e9f702f32a.tar.bz2
Revamp
Diffstat (limited to 'validator_derive/tests/compile-fail')
-rw-r--r--validator_derive/tests/compile-fail/length/wrong_type.rs2
-rw-r--r--validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs2
-rw-r--r--validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs2
-rw-r--r--validator_derive/tests/compile-fail/range/wrong_type.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/validator_derive/tests/compile-fail/length/wrong_type.rs b/validator_derive/tests/compile-fail/length/wrong_type.rs
index 365675f..a9d53d4 100644
--- a/validator_derive/tests/compile-fail/length/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/length/wrong_type.rs
@@ -4,7 +4,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ 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`
+//~^^ HELP: Validator `length` can only be used on types `String`, `&str` or `Vec` but found `usize`
struct Test {
#[validate(length())]
s: usize,
diff --git a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
index f3a2347..1ba5319 100644
--- a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
+++ b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs
@@ -4,7 +4,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ ERROR: proc-macro derive panicked
-//~^^ HELP: Invalid attribute #[validate] on field `password`: invalid argument for `must_match` validator: field doesn't exist in struct
+//~^^ HELP: Invalid argument for `must_match` validator of field `password`: the other field doesn't exist in struct
struct Test {
#[validate(must_match = "password2")]
password: String,
diff --git a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
index b04a732..580495a 100644
--- a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
+++ b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs
@@ -4,7 +4,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ ERROR: proc-macro derive panicked
-//~^^ HELP: Invalid attribute #[validate] on field `password`: invalid argument for `must_match` validator: types of field can't match
+//~^^ HELP: Invalid argument for `must_match` validator of field `password`: types of field can't match
struct Test {
#[validate(must_match = "password2")]
password: String,
diff --git a/validator_derive/tests/compile-fail/range/wrong_type.rs b/validator_derive/tests/compile-fail/range/wrong_type.rs
index 239a93d..f6a0a43 100644
--- a/validator_derive/tests/compile-fail/range/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/range/wrong_type.rs
@@ -6,7 +6,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ ERROR: proc-macro derive panicked
-//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `range` can only be used on number types but found `String`
+//~^^ HELP: Validator `range` can only be used on number types but found `String`
struct Test {
#[validate(range(min = 10.0, max = 12.0))]
s: String,