mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Add regression test
This commit is contained in:
@@ -1198,3 +1198,26 @@ fn bar() {
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn nested_macro_in_fn_params() {
|
||||
check_no_mismatches(
|
||||
r#"
|
||||
macro_rules! U32Inner {
|
||||
() => {
|
||||
u32
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! U32 {
|
||||
() => {
|
||||
U32Inner!()
|
||||
};
|
||||
}
|
||||
|
||||
fn mamba(a: U32!(), p: u32) -> u32 {
|
||||
a
|
||||
}
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user