Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
macros
/
auxiliary
/
macro_crate_nonterminal.rs
blob: 2e2440462ae4e9f15b5ef94944dfcbd688673bf2 [
file
] [
log
] [
blame
]
pub
fn
increment
(
x
:
usize
)
->
usize
{
x
+
1
}
#[
macro_export
]
macro_rules
!
increment
{
(
$x
:
expr
)
=>
(
$crate
::
increment
(
$x
))
}
pub
fn
check_local
()
{
assert_eq
!(
increment
!(
3
),
4
);
}