mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Add regression test
This commit is contained in:
parent
a68ff269a9
commit
9da1eee436
1 changed files with 24 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue