about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-17441.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/issue-17441.rs')
-rw-r--r--src/test/compile-fail/issue-17441.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/compile-fail/issue-17441.rs b/src/test/compile-fail/issue-17441.rs
index e5da5c5504e..6ae4fbca8b0 100644
--- a/src/test/compile-fail/issue-17441.rs
+++ b/src/test/compile-fail/issue-17441.rs
@@ -9,16 +9,16 @@
 // except according to those terms.
 
 fn main() {
-    let _foo = &[1u, 2] as [uint];
-    //~^ ERROR cast to unsized type: `&[uint; 2]` as `[uint]`
-    //~^^ HELP consider using an implicit coercion to `&[uint]` instead
+    let _foo = &[1u, 2] as [usize];
+    //~^ ERROR cast to unsized type: `&[usize; 2]` as `[usize]`
+    //~^^ HELP consider using an implicit coercion to `&[usize]` instead
     let _bar = box 1u as std::fmt::Show;
-    //~^ ERROR cast to unsized type: `Box<uint>` as `core::fmt::Show`
+    //~^ ERROR cast to unsized type: `Box<usize>` as `core::fmt::Show`
     //~^^ HELP did you mean `Box<core::fmt::Show>`?
     let _baz = 1u as std::fmt::Show;
-    //~^ ERROR cast to unsized type: `uint` as `core::fmt::Show`
+    //~^ ERROR cast to unsized type: `usize` as `core::fmt::Show`
     //~^^ HELP consider using a box or reference as appropriate
-    let _quux = [1u, 2] as [uint];
-    //~^ ERROR cast to unsized type: `[uint; 2]` as `[uint]`
+    let _quux = [1u, 2] as [usize];
+    //~^ ERROR cast to unsized type: `[usize; 2]` as `[usize]`
     //~^^ HELP consider using a box or reference as appropriate
 }