Skip to content

Commit 9da1eee

Browse files
committed
Add regression test
1 parent a68ff26 commit 9da1eee

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

crates/hir_ty/src/tests/regression.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,30 @@ fn issue_4465_dollar_crate_at_type() {
592592
);
593593
}
594594

595+
#[test]
596+
fn issue_6811() {
597+
check_infer(
598+
r#"
599+
macro_rules! profile_function {
600+
() => {
601+
let _a = 1;
602+
let _b = 1;
603+
};
604+
}
605+
fn main() {
606+
profile_function!();
607+
}
608+
"#,
609+
expect![[r#"
610+
!3..5 '_a': i32
611+
!6..7 '1': i32
612+
!11..13 '_b': i32
613+
!14..15 '1': i32
614+
103..131 '{ ...!(); }': ()
615+
"#]],
616+
);
617+
}
618+
595619
#[test]
596620
fn issue_4053_diesel_where_clauses() {
597621
check_infer(

0 commit comments

Comments
 (0)