Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
macros
/
macro-with-attrs2.rs
blob: 7d0bf91142532b75ddd35bd23c46a42ec1ad1f5e [
file
] [
log
] [
blame
]
//@ run-pass
#[
cfg
(
false
)]
macro_rules
!
foo
{
()
=>
(
1
)
}
#[
cfg
(
not
(
FALSE
))]
macro_rules
!
foo
{
()
=>
(
2
)
}
pub
fn
main
()
{
assert_eq
!(
foo
!(),
2
);
}