]> git.lizzy.rs Git - rust.git/blob - src/test/ui/malformed/malformed-derive-entry.rs
Auto merge of #103903 - matthiaskrgr:rollup-r5xcvrp, r=matthiaskrgr
[rust.git] / src / test / ui / malformed / malformed-derive-entry.rs
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
14 fn main() {}