Fix testsuite errors

This commit is contained in:
mdinger
2015-01-12 01:01:44 -05:00
parent 5616b92e4d
commit 7b82a93be3
95 changed files with 980 additions and 221 deletions

View File

@@ -9,8 +9,18 @@
// except according to those terms.
fn main() {
let _x: isize = [1is, 2, 3]; //~ ERROR expected isize, found array of 3 elements
let _x: isize = [1is, 2, 3];
//~^ ERROR mismatched types
//~| expected `isize`
//~| found `[isize; 3]`
//~| expected isize
//~| found array of 3 elements
let x: &[isize] = &[1, 2, 3];
let _y: &isize = x; //~ ERROR expected isize, found slice
let _y: &isize = x;
//~^ ERROR mismatched types
//~| expected `&isize`
//~| found `&[isize]`
//~| expected isize
//~| found slice
}