From 7d62280a713de08b361a08df077ff361b2e1fa99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 5 Apr 2020 18:25:47 +0300 Subject: Hide unit fn return types --- crates/ra_hir_ty/src/tests/traits.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir_ty/src/tests/traits.rs') diff --git a/crates/ra_hir_ty/src/tests/traits.rs b/crates/ra_hir_ty/src/tests/traits.rs index f009a708c..081aa943a 100644 --- a/crates/ra_hir_ty/src/tests/traits.rs +++ b/crates/ra_hir_ty/src/tests/traits.rs @@ -263,7 +263,7 @@ fn test() { [119; 120) 'S': S(u32) -> S [119; 129) 'S(unknown)': S [121; 128) 'unknown': u32 - [135; 138) 'foo': fn foo>(S) -> () + [135; 138) 'foo': fn foo>(S) [135; 141) 'foo(s)': () [139; 140) 's': S "### @@ -962,7 +962,7 @@ fn test(x: impl Trait, y: &impl Trait) { [224; 225) 'S': S(u16) -> S [224; 228) 'S(1)': S [226; 227) '1': u16 - [234; 237) 'bar': fn bar(S) -> () + [234; 237) 'bar': fn bar(S) [234; 240) 'bar(z)': () [238; 239) 'z': S [246; 247) 'x': impl Trait @@ -1108,8 +1108,8 @@ fn test() { [40; 47) 'loop {}': ! [45; 47) '{}': () [91; 124) '{ ...foo; }': () - [101; 102) 'f': fn(S) -> () - [118; 121) 'foo': fn foo(S) -> () + [101; 102) 'f': fn(S) + [118; 121) 'foo': fn foo(S) "### ); } @@ -1962,7 +1962,7 @@ fn test() -> impl Trait { [229; 241) 'S(default())': S [231; 238) 'default': fn default() -> u32 [231; 240) 'default()': u32 - [247; 250) 'foo': fn foo(S) -> () + [247; 250) 'foo': fn foo(S) [247; 254) 'foo(s1)': () [251; 253) 's1': S [264; 265) 'x': i32 @@ -2012,7 +2012,7 @@ fn main() { [147; 149) '_v': F [192; 195) '{ }': () [207; 238) '{ ... }); }': () - [213; 223) 'f::<(), _>': fn f<(), |&()| -> ()>(|&()| -> ()) -> () + [213; 223) 'f::<(), _>': fn f<(), |&()| -> ()>(|&()| -> ()) [213; 235) 'f::<()... z; })': () [224; 234) '|z| { z; }': |&()| -> () [225; 226) 'z': &() -- cgit v1.2.3