Sign in
qemu
/
meson
/
6db1d2bca5eaf9ff3f92249340da7b66c91d26c5
/
.
/
test cases
/
rust
/
18 proc-macro
/
proc.rs
blob: 53935e45d17f9aa99350e539c2fd9b89a6183fc4 [
file
] [
log
] [
blame
]
extern
crate proc_macro
;
use
proc_macro
::
TokenStream
;
#[
proc_macro
]
pub
fn
make_answer
(
_item
:
TokenStream
)
->
TokenStream
{
"fn answer() -> u32 { 42 }"
.
parse
().
unwrap
()
}