2019-12-05 13:53:56 +01:00
|
|
|
#[derive(Copy(Bad))]
|
|
|
|
//~^ ERROR traits in `#[derive(...)]` don't accept arguments
|
|
|
|
//~| ERROR the trait bound
|
2015-03-06 13:15:54 -08:00
|
|
|
struct Test1;
|
|
|
|
|
2019-12-05 13:53:56 +01:00
|
|
|
#[derive(Copy="bad")]
|
|
|
|
//~^ ERROR traits in `#[derive(...)]` don't accept values
|
|
|
|
//~| ERROR the trait bound
|
2015-03-06 13:15:54 -08:00
|
|
|
struct Test2;
|
|
|
|
|
2019-05-21 17:47:23 -07:00
|
|
|
#[derive] //~ ERROR malformed `derive` attribute input
|
2015-03-06 13:15:54 -08:00
|
|
|
struct Test4;
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
fn main() {}
|