Sign in
android
/
toolchain
/
rustc
/
43f0694b1feb1296004d84509e01177159e71be0
/
.
/
src
/
test
/
ui
/
macros
/
macro-stmt_macro_in_expr_macro.rs
blob: 528d0b28bf6d7296c45983b403037b5f5e871a96 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
macro_rules
!
foo
{
()
=>
{
struct
Bar
;
struct
Baz
;
}
}
macro_rules
!
grault
{
()
=>
{{
foo
!();
struct
Xyzzy
;
0
}}
}
fn
main
()
{
let
x
=
grault
!();
assert_eq
!(
x
,
0
);
}