Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/tests/traits.rs')
-rw-r--r--crates/hir_ty/src/tests/traits.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/crates/hir_ty/src/tests/traits.rs b/crates/hir_ty/src/tests/traits.rs
index 04d8b91e35..5daffb2c5e 100644
--- a/crates/hir_ty/src/tests/traits.rs
+++ b/crates/hir_ty/src/tests/traits.rs
@@ -3394,7 +3394,6 @@ fn main() {
)
}
-// FIXME: We should infer the length of the returned array :)
#[test]
fn const_generics() {
check_infer(
@@ -3418,18 +3417,18 @@ fn main() {
"#,
expect![[r#"
44..48 'self': &Self
- 151..155 'self': &[u8; _]
- 173..194 '{ ... }': [u8; _]
- 183..188 '*self': [u8; _]
- 184..188 'self': &[u8; _]
+ 151..155 'self': &[u8; L]
+ 173..194 '{ ... }': [u8; L]
+ 183..188 '*self': [u8; L]
+ 184..188 'self': &[u8; L]
208..260 '{ ...g(); }': ()
218..219 'v': [u8; 2]
222..230 '[0u8; 2]': [u8; 2]
223..226 '0u8': u8
228..229 '2': usize
- 240..242 'v2': [u8; _]
+ 240..242 'v2': [u8; 2]
245..246 'v': [u8; 2]
- 245..257 'v.do_thing()': [u8; _]
+ 245..257 'v.do_thing()': [u8; 2]
"#]],
)
}