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 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/crates/hir_ty/src/tests/simple.rs b/crates/hir_ty/src/tests/simple.rs index c11a70fa66..0d050f7461 100644 --- a/crates/hir_ty/src/tests/simple.rs +++ b/crates/hir_ty/src/tests/simple.rs @@ -1202,14 +1202,13 @@ fn infer_array() { let b = [a, ["b"]]; let x: [u8; 0] = []; - // FIXME: requires const evaluation/taking type from rhs somehow let y: [u8; 2+2] = [1,2,3,4]; } "#, expect![[r#" 8..9 'x': &str 17..18 'y': isize - 27..395 '{ ...,4]; }': () + 27..326 '{ ...,4]; }': () 37..38 'a': [&str; 1] 41..44 '[x]': [&str; 1] 42..43 'x': &str @@ -1259,12 +1258,12 @@ fn infer_array() { 259..262 '"b"': &str 274..275 'x': [u8; 0] 287..289 '[]': [u8; 0] - 368..369 'y': [u8; _] - 383..392 '[1,2,3,4]': [u8; 4] - 384..385 '1': u8 - 386..387 '2': u8 - 388..389 '3': u8 - 390..391 '4': u8 + 299..300 'y': [u8; 4] + 314..323 '[1,2,3,4]': [u8; 4] + 315..316 '1': u8 + 317..318 '2': u8 + 319..320 '3': u8 + 321..322 '4': u8 "#]], ); } |