diff options
author | Florian Diebold <[email protected]> | 2019-09-07 14:13:05 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-09-07 14:13:05 +0100 |
commit | d21cdf3c998bb24e48e81a7e6909df2146ce097c (patch) | |
tree | 5f6928f1ee40b3f314c6f74f3552e06f820b5ca7 /crates/ra_hir/src/ty | |
parent | 60bdb66ef23f78d8c73afa1897a4542e7e722ed2 (diff) |
Lower `Fn(X, Y) -> Z` paths
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 17c4e3556..c414e6a95 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -3736,7 +3736,7 @@ fn fn_trait() { | |||
3736 | trait FnOnce<Args> { | 3736 | trait FnOnce<Args> { |
3737 | type Output; | 3737 | type Output; |
3738 | 3738 | ||
3739 | fn call_once(self, args: Args) -> Self::Output; | 3739 | fn call_once(self, args: Args) -> <Self as FnOnce<Args>>::Output; |
3740 | } | 3740 | } |
3741 | 3741 | ||
3742 | fn test<F: FnOnce(u32, u64) -> u128>(f: F) { | 3742 | fn test<F: FnOnce(u32, u64) -> u128>(f: F) { |
@@ -3746,13 +3746,13 @@ fn test<F: FnOnce(u32, u64) -> u128>(f: F) { | |||
3746 | @r###" | 3746 | @r###" |
3747 | [57; 61) 'self': Self | 3747 | [57; 61) 'self': Self |
3748 | [63; 67) 'args': Args | 3748 | [63; 67) 'args': Args |
3749 | [132; 133) 'f': F | 3749 | [150; 151) 'f': F |
3750 | [138; 166) '{ ...2)); }': () | 3750 | [156; 184) '{ ...2)); }': () |
3751 | [144; 145) 'f': F | 3751 | [162; 163) 'f': F |
3752 | [144; 163) 'f.call...1, 2))': {unknown} | 3752 | [162; 181) 'f.call...1, 2))': {unknown} |
3753 | [156; 162) '(1, 2)': (i32, i32) | 3753 | [174; 180) '(1, 2)': (u32, u64) |
3754 | [157; 158) '1': i32 | 3754 | [175; 176) '1': u32 |
3755 | [160; 161) '2': i32 | 3755 | [178; 179) '2': u64 |
3756 | "### | 3756 | "### |
3757 | ); | 3757 | ); |
3758 | } | 3758 | } |