Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
rust-2018
/
auxiliary
/
suggestions-not-always-applicable.rs
blob: bccde8e8de7ff95f49e342ecc70af3fbe36fa3a8 [
file
] [
log
] [
blame
]
extern
crate proc_macro
;
use
proc_macro
::*;
#[
proc_macro_attribute
]
pub
fn
foo
(
_attr
:
TokenStream
,
_f
:
TokenStream
)
->
TokenStream
{
"pub fn foo() -> ::Foo { ::Foo }"
.
parse
().
unwrap
()
}