aboutsummaryrefslogtreecommitdiffstats
path: root/validator_derive/tests/compile-fail
diff options
context:
space:
mode:
authorVincent Prouillet2017-01-18 21:35:01 +0900
committerVincent Prouillet2017-01-19 13:38:47 +0900
commit1fd1b3d708a2737c2a678df8a37e719c29c754bc (patch)
tree67cb2b347ee2dab46bce64fdcfcb1f77a59e9a19 /validator_derive/tests/compile-fail
parent8f54c9228d8cf8e2bede37ddc9958db7ce4c63a8 (diff)
downloadvalidator-1fd1b3d708a2737c2a678df8a37e719c29c754bc.tar.bz2
Make it work with lifetimes
Diffstat (limited to 'validator_derive/tests/compile-fail')
-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 e8a28ca..12dbb61 100644
--- a/validator_derive/tests/compile-fail/length/wrong_type.rs
+++ b/validator_derive/tests/compile-fail/length/wrong_type.rs
@@ -6,7 +6,7 @@ use validator::Validate;
#[derive(Validate)]
//~^ ERROR: custom derive attribute panicked
-//~^^ HELP: Invalid attribute #[validate] on field `s`: Validator `length` can only be used on types `String` or `Vec` but found `usize`
+//~^^ 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())]
s: usize,