Sign in
fuchsia
/
third_party
/
rust
/
3c2fd1a72d2e8cc80b354b4d2dd7931a7afe1b02
/
.
/
src
/
test
/
ui
/
macros
/
macro-with-attrs2.rs
blob: 78c40810207061732afef685ffffe84e9cec0b36 [
file
] [
log
] [
blame
]
// run-pass
#[
cfg
(
foo
)]
macro_rules
!
foo
{
()
=>
(
1
)
}
#[
cfg
(
not
(
foo
))]
macro_rules
!
foo
{
()
=>
(
2
)
}
pub
fn
main
()
{
assert_eq
!(
foo
!(),
2
);
}