minor: add a test variation
This commit is contained in:
parent
fa4c851619
commit
7786ab2d44
@ -2005,11 +2005,19 @@ fn do_resolve(not_ra_fixture: &str) -> DefMap {
|
||||
fn test_macro_expand_will_stop_1() {
|
||||
do_resolve(
|
||||
r#"
|
||||
macro_rules! foo {
|
||||
($($ty:ty)*) => { foo!($($ty)*); }
|
||||
}
|
||||
foo!(KABOOM);
|
||||
"#,
|
||||
macro_rules! foo {
|
||||
($($ty:ty)*) => { foo!($($ty)*); }
|
||||
}
|
||||
foo!(KABOOM);
|
||||
"#,
|
||||
);
|
||||
do_resolve(
|
||||
r#"
|
||||
macro_rules! foo {
|
||||
($($ty:ty)*) => { foo!(() $($ty)*); }
|
||||
}
|
||||
foo!(KABOOM);
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user