9285: minor: add a test variation r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2021-06-15 08:59:08 +00:00 committed by GitHub
commit 93750f5e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2005,11 +2005,19 @@ mod tests {
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);
"#,
);
}