Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
macro-stmt_macro_in_expr_macro.rs
blob: 8b634b4aa54014189c63aa3f96a7bd1460ef9627 [
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
);
}