rust/tests/ui/proc-macro/derive-bad.rs
2023-04-10 22:02:52 +02:00

12 lines
244 B
Rust

// aux-build:derive-bad.rs
#[macro_use]
extern crate derive_bad;
#[derive(A)]
//~^ ERROR proc-macro derive produced unparsable tokens
//~| ERROR expected `:`, found `}`
struct A; //~ ERROR the name `A` is defined multiple times
fn main() {}