Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
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
);
}