diff options
| author | Vincent Prouillet | 2017-05-26 00:49:54 +0900 |
|---|---|---|
| committer | Vincent Prouillet | 2017-05-28 23:52:07 +0900 |
| commit | b31fd25cc5cec96ccee737ba1313c6e9f702f32a (patch) | |
| tree | e71b13aea39c61b19e8aec09468a8e5c4a291e16 /validator_derive/tests/compile-fail/length | |
| parent | 69e35d6cc905b9d7a894af7e486237e376fae939 (diff) | |
| download | validator-b31fd25cc5cec96ccee737ba1313c6e9f702f32a.tar.bz2 | |
Revamp
Diffstat (limited to 'validator_derive/tests/compile-fail/length')
| -rw-r--r-- | validator_derive/tests/compile-fail/length/wrong_type.rs | 2 |
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, |
