rust/tests/ui/malformed/malformed-derive-entry.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
329 B
Rust
Raw Normal View History

2019-12-05 06:53:56 -06:00
#[derive(Copy(Bad))]
//~^ ERROR traits in `#[derive(...)]` don't accept arguments
//~| ERROR the trait bound
struct Test1;
2019-12-05 06:53:56 -06:00
#[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() {}