aboutsummaryrefslogtreecommitdiffstats
path: root/validator_derive/tests/compile-fail/length
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/length
parent69e35d6cc905b9d7a894af7e486237e376fae939 (diff)
downloadvalidator-b31fd25cc5cec96ccee737ba1313c6e9f702f32a.tar.bz2
Revamp
Diffstat (limited to 'validator_derive/tests/compile-fail/length')
-rw-r--r--validator_derive/tests/compile-fail/length/wrong_type.rs2
1 files changed, 1 insertions, 1 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,