• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[derive(Copy(Bad))]
2 //~^ ERROR traits in `#[derive(...)]` don't accept arguments
3 //~| ERROR the trait bound
4 struct Test1;
5 
6 #[derive(Copy="bad")]
7 //~^ ERROR traits in `#[derive(...)]` don't accept values
8 //~| ERROR the trait bound
9 struct Test2;
10 
11 #[derive] //~ ERROR malformed `derive` attribute input
12 struct Test4;
13 
main()14 fn main() {}
15