mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 11:50:45 +00:00
12 lines
247 B
Rust
12 lines
247 B
Rust
//@ proc-macro: 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() {}
|