]> git.lizzy.rs Git - rust.git/blob - src/test/ui/malformed/malformed-derive-entry.rs
Rollup merge of #67102 - Aaron1011:patch-3, r=Mark-Simulacrum
[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() {}