Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/macro_expansion_tests/mbe/matching.rs')
-rw-r--r--crates/hir_def/src/macro_expansion_tests/mbe/matching.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs b/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs
index 83e8937f5b..b93072d446 100644
--- a/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs
+++ b/crates/hir_def/src/macro_expansion_tests/mbe/matching.rs
@@ -85,17 +85,21 @@ fn stmt_boundaries() {
check(
r#"
macro_rules! m {
- ($($s:stmt)*) => (stringify!($($s |)*))
+ ($($s:stmt)*) => (stringify!($($s |)*);)
}
-// +errors
m!(;;92;let x = 92; loop {};);
"#,
expect![[r#"
macro_rules! m {
- ($($s:stmt)*) => (stringify!($($s |)*))
+ ($($s:stmt)*) => (stringify!($($s |)*);)
}
-/* error: expected Stmt *//* parse error: expected SEMICOLON */
-stringify!()
+stringify!(;
+|;
+|92|;
+|let x = 92|;
+|loop {}
+|;
+|);
"#]],
);
}