Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs')
-rw-r--r--crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs b/crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs
index 4c58ea9ba6..5f4b7d6d0b 100644
--- a/crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs
+++ b/crates/hir_def/src/macro_expansion_tests/mbe/tt_conversion.rs
@@ -105,21 +105,21 @@ macro_rules! m2 { ($x:ident) => {} }
#[test]
fn expansion_does_not_parse_as_expression() {
- cov_mark::check!(expansion_does_not_parse_as_expression);
check(
r#"
macro_rules! stmts {
() => { let _ = 0; }
}
-fn f() { let _ = stmts!(); }
+fn f() { let _ = stmts!/*+errors*/(); }
"#,
expect![[r#"
macro_rules! stmts {
() => { let _ = 0; }
}
-fn f() { let _ = /* error: could not convert tokens */; }
+fn f() { let _ = /* parse error: expected expression */
+let _ = 0;; }
"#]],
)
}