Sign in
pigweed
/
third_party
/
github
/
bazelbuild
/
rules_rust
/
6a6638802633b2e5c3c4bfc22bd46f2f6b2bb84b
/
.
/
test
/
clippy
/
src
/
proc_macro.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
()
}