Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
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
(){}