Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
748647f8b89e88dadb66fac2fe62128d3b2dcb95
/
.
/
tests
/
rustdoc
/
rustc-macro-crate.rs
blob: f0443364bb2cf3b263991e4dfe4cf0f371bdc8ba [
file
] [
log
] [
blame
]
//@ force-host
//@ no-prefer-dynamic
//@ compile-flags: --crate-type proc-macro
#![
crate_type
=
"proc-macro"
]
extern
crate proc_macro
;
use
proc_macro
::
TokenStream
;
#[
proc_macro_derive
(
Foo
)]
pub
fn
foo
(
input
:
TokenStream
)
->
TokenStream
{
input
}