Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
pretty
/
auxiliary
/
derive-foo.rs
blob: 1602750828116f69f17d64b4156b7ab226d1318d [
file
] [
log
] [
blame
]
extern
crate proc_macro
;
use
proc_macro
::
TokenStream
;
#[
proc_macro_derive
(
Foo
,
attributes
(
Bar
))]
pub
fn
derive
(
input
:
TokenStream
)
->
TokenStream
{
""
.
parse
().
unwrap
()
}