Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
test-attrs
/
test-on-macro.rs
blob: 0667364d13cd499ef721f1c1777006fad0708ab3 [
file
] [
log
] [
blame
]
// check-pass
// compile-flags:--test
#![
deny
(
warnings
)]
macro_rules
!
foo
{
()
=>
(
fn
foo
(){})
}
#[
test
]
foo
!();
//~ WARNING `#[test]` attribute should not be used on macros
fn
main
(){}