Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
proc-macro
/
auxiliary
/
match-expander.rs
blob: bf78df2addf31319ceed5fe217551dd153c513ae [
file
] [
log
] [
blame
]
extern
crate proc_macro
;
use
proc_macro
::
TokenStream
;
#[
proc_macro
]
pub
fn
matcher
(
input
:
TokenStream
)
->
TokenStream
{
"
struct
S
(());
let
s
=
S
(());
match
s
{
true
=>
{}
_
=>
{}
}
"
.
parse
().
unwrap
()
}