add test case for ignoring inlay hint for macro call

This commit is contained in:
gohome001 2025-02-11 15:27:34 +08:00
parent 55dbf3949d
commit 42f11d49ee

View File

@ -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!()
}
"#,
);
}