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