Fix tuple test case

This commit is contained in:
Hirokazu Hata
2019-01-13 22:01:33 +09:00
parent 6e73cc89b6
commit 139da0841d
2 changed files with 35 additions and 6 deletions

View File

@@ -272,8 +272,15 @@ fn test(a: A) {
fn infer_tuple() {
check_inference(
r#"
fn test() {
fn test(x: &str, y: isize) {
let a: (u32, &str) = (1, "a");
let b = (a, x);
let c = (y, x);
let d = (c, x);
// we have not infered these case yet.
let e = (1, "e");
let f = (e, "d");
}
"#,
"tuple.txt",