diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-30 20:14:26 +0000 |
---|---|---|
committer | Marcus Klaas de Vries <[email protected]> | 2019-01-30 20:14:26 +0000 |
commit | 13cb4a1b370038dee51ae739a42d6b98acaef385 (patch) | |
tree | 90e547541b0bec6771c37e9e1d53dfbdb1d02936 /crates/ra_hir/src/ty/tests.rs | |
parent | 3daca3eb4d843199540edfb1092f57f49938d0f6 (diff) |
Add test for passing on ref expectations
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 8aa188059..812d1238c 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -366,6 +366,7 @@ fn test(x: &str, y: isize) { | |||
366 | 366 | ||
367 | let b = [a, ["b"]]; | 367 | let b = [a, ["b"]]; |
368 | let x: [u8; 0] = []; | 368 | let x: [u8; 0] = []; |
369 | let z: &[u8] = &[1, 2, 3]; | ||
369 | } | 370 | } |
370 | "#, | 371 | "#, |
371 | ); | 372 | ); |