Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/tests/simple.rs')
| -rw-r--r-- | crates/hir-ty/src/tests/simple.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/hir-ty/src/tests/simple.rs b/crates/hir-ty/src/tests/simple.rs index d4d61c2167..4b8a7e782d 100644 --- a/crates/hir-ty/src/tests/simple.rs +++ b/crates/hir-ty/src/tests/simple.rs @@ -2733,3 +2733,14 @@ fn f() { "#, ); } + +#[test] +fn nested_tuple_index() { + check_no_mismatches( + r#" +fn main() { + let fld: i32 = ((0,),).0.0; +} +"#, + ); +} |