diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-26 18:25:57 +0000 |
---|---|---|
committer | Marcus Klaas de Vries <[email protected]> | 2019-01-27 16:59:21 +0000 |
commit | f6eb44cd9e2a27d2004386c71fb6c72f79ba83b3 (patch) | |
tree | 7d8b00f84f2ccf53983f7a40f9c93e2a6820fafd /crates/ra_hir/src/ty/tests.rs | |
parent | 0da1e8b2f8709cbdb20912664878121d979a5213 (diff) |
Use type information from the turbofish
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 40913b164..fac566626 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -611,6 +611,9 @@ fn test() { | |||
611 | let y = 10u32; | 611 | let y = 10u32; |
612 | id(y); | 612 | id(y); |
613 | let x: bool = clone(z); | 613 | let x: bool = clone(z); |
614 | |||
615 | // bad turbofish - ignore! | ||
616 | id::<i128, String>(1); | ||
614 | } | 617 | } |
615 | "#, | 618 | "#, |
616 | ); | 619 | ); |