mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
add test case for ignoring inlay hint for macro call
This commit is contained in:
parent
55dbf3949d
commit
42f11d49ee
@ -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…
x
Reference in New Issue
Block a user