diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-01-31 17:23:42 +0100 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-01-31 17:40:40 +0100 |
| commit | b4a43f3864e394959a7d3c3efae6da85bdc59c71 (patch) | |
| tree | 90ce64d37d1e616c4916281f5e1eb338d54ff7a0 /src/test/compile-fail/array-not-vector.rs | |
| parent | 105bfd30012a7d4278117e973b56c170a59fc20d (diff) | |
| download | rust-b4a43f3864e394959a7d3c3efae6da85bdc59c71.tar.gz rust-b4a43f3864e394959a7d3c3efae6da85bdc59c71.zip | |
Kill more `isize`s
Diffstat (limited to 'src/test/compile-fail/array-not-vector.rs')
| -rw-r--r-- | src/test/compile-fail/array-not-vector.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/compile-fail/array-not-vector.rs b/src/test/compile-fail/array-not-vector.rs index 2415288a3eb..7111c00d124 100644 --- a/src/test/compile-fail/array-not-vector.rs +++ b/src/test/compile-fail/array-not-vector.rs @@ -9,18 +9,18 @@ // except according to those terms. fn main() { - let _x: isize = [1is, 2, 3]; + let _x: i32 = [1i32, 2, 3]; //~^ ERROR mismatched types - //~| expected `isize` - //~| found `[isize; 3]` - //~| expected isize + //~| expected `i32` + //~| found `[i32; 3]` + //~| expected i32 //~| found array of 3 elements - let x: &[isize] = &[1, 2, 3]; - let _y: &isize = x; + let x: &[i32] = &[1i32, 2, 3]; + let _y: &i32 = x; //~^ ERROR mismatched types - //~| expected `&isize` - //~| found `&[isize]` - //~| expected isize + //~| expected `&i32` + //~| found `&[i32]` + //~| expected i32 //~| found slice } |
