summaryrefslogtreecommitdiffstats
path: root/vendor/derivative/tests/compile-fail/unknown-attribute.rs
blob: 31cdaf43174ef62da0eee0f26da223ea02813cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "use_core")]
extern crate core;

#[macro_use]
extern crate derivative;

#[derive(Derivative)]
#[derivative(Clone = "does_not_exist")]
struct Foo;

#[derive(Derivative)]
#[derivative(Clone(does_not_exist = "true"))]
struct Bar;

fn main() {}