aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r--crates/ra_hir_ty/src/tests/regression.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ra_hir_ty/src/tests/regression.rs b/crates/ra_hir_ty/src/tests/regression.rs
index 13c5f62e4..6c5d39549 100644
--- a/crates/ra_hir_ty/src/tests/regression.rs
+++ b/crates/ra_hir_ty/src/tests/regression.rs
@@ -310,6 +310,23 @@ fn test<R>(query_response: Canonical<QueryResponse<R>>) {
310} 310}
311 311
312#[test] 312#[test]
313fn infer_paren_macro_call() {
314 assert_snapshot!(
315 infer(r#"
316macro_rules! bar { () => {0u32} }
317fn test() {
318 let a = (bar!());
319}
320"#),
321 @r###"
322 ![0; 4) '0u32': u32
323 [45; 70) '{ ...()); }': ()
324 [55; 56) 'a': u32
325 "###
326 );
327}
328
329#[test]
313fn bug_1030() { 330fn bug_1030() {
314 assert_snapshot!(infer(r#" 331 assert_snapshot!(infer(r#"
315struct HashSet<T, H>; 332struct HashSet<T, H>;