Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
lint
/
unused
/
unused-macros-malformed-rule.rs
blob: d4c35fad9b0f0fa0b0ba8e73e4be8b47653356d9 [
file
] [
log
] [
blame
]
#![
deny
(
unused_macros
)]
macro_rules
!
foo
{
//~ ERROR: unused macro definition
(
v
)
=>
{};
()
=>
0
;
//~ ERROR: macro rhs must be delimited
}
macro_rules
!
bar
{
(
v
)
=>
{};
()
=>
0
;
//~ ERROR: macro rhs must be delimited
}
fn
main
()
{
bar
!(
v
);
}