summaryrefslogtreecommitdiffstats
path: root/src/test/ui/malformed/malformed-derive-entry.rs
blob: 77fa2f566a8fc1524bd5d61ea5e58e23d1392387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Copy(Bad))]
//~^ ERROR traits in `#[derive(...)]` don't accept arguments
//~| ERROR the trait bound
struct Test1;

#[derive(Copy="bad")]
//~^ ERROR traits in `#[derive(...)]` don't accept values
//~| ERROR the trait bound
struct Test2;

#[derive] //~ ERROR malformed `derive` attribute input
struct Test4;

fn main() {}