blob: bab6c4a4cfd0976bef4a35254cfdb982fdf7ab5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#[macro_use] extern crate validator_derive;
extern crate validator;
use validator::Validate;
#[derive(Validate)]
//~^ 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())]
s: String,
}
fn main() {}
|