mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
minor: add a test variation
This commit is contained in:
parent
fa4c851619
commit
7786ab2d44
@ -2005,11 +2005,19 @@ mod tests {
|
|||||||
fn test_macro_expand_will_stop_1() {
|
fn test_macro_expand_will_stop_1() {
|
||||||
do_resolve(
|
do_resolve(
|
||||||
r#"
|
r#"
|
||||||
macro_rules! foo {
|
macro_rules! foo {
|
||||||
($($ty:ty)*) => { foo!($($ty)*); }
|
($($ty:ty)*) => { foo!($($ty)*); }
|
||||||
}
|
}
|
||||||
foo!(KABOOM);
|
foo!(KABOOM);
|
||||||
"#,
|
"#,
|
||||||
|
);
|
||||||
|
do_resolve(
|
||||||
|
r#"
|
||||||
|
macro_rules! foo {
|
||||||
|
($($ty:ty)*) => { foo!(() $($ty)*); }
|
||||||
|
}
|
||||||
|
foo!(KABOOM);
|
||||||
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user