Add regression test

This commit is contained in:
Edwin Cheng 2020-12-15 14:39:26 +08:00
parent a68ff269a9
commit 9da1eee436

View File

@ -592,6 +592,30 @@ fn issue_4465_dollar_crate_at_type() {
);
}
#[test]
fn issue_6811() {
check_infer(
r#"
macro_rules! profile_function {
() => {
let _a = 1;
let _b = 1;
};
}
fn main() {
profile_function!();
}
"#,
expect![[r#"
!3..5 '_a': i32
!6..7 '1': i32
!11..13 '_b': i32
!14..15 '1': i32
103..131 '{ ...!(); }': ()
"#]],
);
}
#[test]
fn issue_4053_diesel_where_clauses() {
check_infer(