blob: e8281b4814cf898a1b3350f219969d41c447e867 (
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: custom derive attribute panicked
//~^^ HELP: Invalid attribute #[validate] on field `s`: it needs at least one validator
struct Test {
#[validate()]
s: String,
}
fn main() {}
|