mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Add regression test
This commit is contained in:
parent
624ee23147
commit
034dd41ea8
1 changed files with 23 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue