mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
Add regression test
This commit is contained in:
parent
624ee23147
commit
034dd41ea8
@ -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
|
||||
}
|
||||
"#,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user