diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-10-23 22:48:32 +0200 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-10-29 23:56:22 +0100 |
| commit | 66fbe4c22c9743aff642f06549ce5f503668f722 (patch) | |
| tree | 85c7f8214109eedc7e328beaa772672c1d13dc49 /src/test/compile-fail/array-not-vector.rs | |
| parent | 0c0365d33f2acd067156d366fd4b0c250efe7240 (diff) | |
| download | rust-66fbe4c22c9743aff642f06549ce5f503668f722.tar.gz rust-66fbe4c22c9743aff642f06549ce5f503668f722.zip | |
Update tests with the new diagnostic tweaks
Diffstat (limited to 'src/test/compile-fail/array-not-vector.rs')
| -rw-r--r-- | src/test/compile-fail/array-not-vector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/array-not-vector.rs b/src/test/compile-fail/array-not-vector.rs index 79d4ada41e8..7edb4b8754a 100644 --- a/src/test/compile-fail/array-not-vector.rs +++ b/src/test/compile-fail/array-not-vector.rs @@ -9,8 +9,8 @@ // except according to those terms. fn main() { - let _x: int = [1i, 2, 3]; //~ ERROR expected int, found array + let _x: int = [1i, 2, 3]; //~ ERROR expected int, found array of 3 elements let x: &[int] = &[1, 2, 3]; - let _y: &int = x; //~ ERROR expected int, found unsized array + let _y: &int = x; //~ ERROR expected int, found slice } |
