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