minor: add a test variation

This commit is contained in:
Aleksey Kladov 2021-06-15 11:58:39 +03:00
parent fa4c851619
commit 7786ab2d44

View File

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