Use type information from the turbofish

This commit is contained in:
Marcus Klaas de Vries
2019-01-26 19:25:57 +01:00
parent 0da1e8b2f8
commit f6eb44cd9e
4 changed files with 40 additions and 12 deletions

View File

@@ -611,6 +611,9 @@ fn test() {
let y = 10u32;
id(y);
let x: bool = clone(z);
// bad turbofish - ignore!
id::<i128, String>(1);
}
"#,
);