diff options
author | Jonas Schievink <[email protected]> | 2021-02-10 13:48:52 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-10 13:48:52 +0000 |
commit | 244d8e37f1cf42e30d3b668dfb088813e54adee2 (patch) | |
tree | e17790d960d6d6fe78865b3204d59ab997a73581 /crates/hir_ty/src/tests | |
parent | e837df84792d2cbf5c606788c7cab7ea4d1829d0 (diff) |
Update fixed tests
Diffstat (limited to 'crates/hir_ty/src/tests')
-rw-r--r-- | crates/hir_ty/src/tests/simple.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index ab21332fb..b364c2e58 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs | |||
@@ -2418,13 +2418,15 @@ fn infer_const_params() { | |||
2418 | 2418 | ||
2419 | #[test] | 2419 | #[test] |
2420 | fn infer_inner_type() { | 2420 | fn infer_inner_type() { |
2421 | check_infer(r#" | 2421 | check_infer( |
2422 | r#" | ||
2422 | fn foo() { | 2423 | fn foo() { |
2423 | struct S { field: u32 } | 2424 | struct S { field: u32 } |
2424 | let s = S { field: 0 }; | 2425 | let s = S { field: 0 }; |
2425 | let f = s.field; | 2426 | let f = s.field; |
2426 | } | 2427 | } |
2427 | "#, expect![[r#" | 2428 | "#, |
2429 | expect![[r#" | ||
2428 | 9..89 '{ ...eld; }': () | 2430 | 9..89 '{ ...eld; }': () |
2429 | 47..48 's': S | 2431 | 47..48 's': S |
2430 | 51..65 'S { field: 0 }': S | 2432 | 51..65 'S { field: 0 }': S |
@@ -2432,5 +2434,6 @@ fn infer_inner_type() { | |||
2432 | 75..76 'f': u32 | 2434 | 75..76 'f': u32 |
2433 | 79..80 's': S | 2435 | 79..80 's': S |
2434 | 79..86 's.field': u32 | 2436 | 79..86 's.field': u32 |
2435 | "#]]); | 2437 | "#]], |
2438 | ); | ||
2436 | } | 2439 | } |