mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
Furthermore, populate `tests/run-make/rustdoc/doctest/` with doctest run-make tests and `tests/run-make/rustdoc/scrape-example/` with scrape example run-make tests.
12 lines
190 B
Rust
12 lines
190 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;
|