mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
12 lines
245 B
Rust
12 lines
245 B
Rust
// aux-build:derive-bad.rs
|
|
|
|
#[macro_use]
|
|
extern crate derive_bad;
|
|
|
|
#[derive(A)]
|
|
//~^ ERROR proc-macro derive produced unparseable tokens
|
|
//~| ERROR expected `:`, found `}`
|
|
struct A; //~ ERROR the name `A` is defined multiple times
|
|
|
|
fn main() {}
|