mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
433da1fc04
They pass fine.
10 lines
186 B
Rust
10 lines
186 B
Rust
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
|
|
#[proc_macro_derive(A)]
|
|
pub fn derive(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { ts }
|
|
|
|
#[derive(Debug)]
|
|
struct S;
|