mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
15 lines
329 B
Rust
15 lines
329 B
Rust
#[derive(Copy(Bad))]
|
|
//~^ ERROR traits in `#[derive(...)]` don't accept arguments
|
|
//~| ERROR the trait bound
|
|
struct Test1;
|
|
|
|
#[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() {}
|