blob: 0a65bdda3fecfaa74b1d07984b62f0ae5ea0df5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(proc_macro, attr_literals)]
#[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() {}
|