Sign in
rust
/
rust-lang
/
rust
/
refs/heads/auto
/
.
/
tests
/
ui
/
conditional-compilation
/
cfg-attr-unknown-attribute-macro-expansion.rs
blob: 0305be5d24e65c28d3f1ff4efdbb8f3e87de6bb4 [
file
] [
log
] [
blame
] [
edit
]
macro_rules
!
foo
{
()
=>
{
#[
cfg_attr
(
true
,
unknown
)]
//~^ ERROR cannot find attribute `unknown` in this scope
fn
foo
()
{}
}
}
foo
!();
fn
main
()
{}