mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-26 17:57:19 +00:00
add test case for ignoring inlay hint for macro call
This commit is contained in:
parent
55dbf3949d
commit
42f11d49ee
1 changed files with 21 additions and 0 deletions
|
|
@ -229,6 +229,27 @@ mod tests {
|
|||
//^ drop(y)
|
||||
}
|
||||
//^ drop(x)
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ignore_inlay_hint_for_macro_call() {
|
||||
check_with_config(
|
||||
ONLY_DROP_CONFIG,
|
||||
r#"
|
||||
struct X;
|
||||
|
||||
macro_rules! my_macro {
|
||||
() => {{
|
||||
let bbb = X;
|
||||
bbb
|
||||
}};
|
||||
}
|
||||
|
||||
fn test() -> X {
|
||||
my_macro!()
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue