about summary refs log tree commit diff
path: root/src/test/compile-fail/const-block-non-item-statement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/const-block-non-item-statement.rs')
-rw-r--r--src/test/compile-fail/const-block-non-item-statement.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/const-block-non-item-statement.rs b/src/test/compile-fail/const-block-non-item-statement.rs
index 1814b1cd544..053efe3b41b 100644
--- a/src/test/compile-fail/const-block-non-item-statement.rs
+++ b/src/test/compile-fail/const-block-non-item-statement.rs
@@ -8,18 +8,18 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-static A: uint = { 1u; 2 };
+static A: usize = { 1u; 2 };
 //~^ ERROR: blocks in constants are limited to items and tail expressions
 
-static B: uint = { { } 2 };
+static B: usize = { { } 2 };
 //~^ ERROR: blocks in constants are limited to items and tail expressions
 
 macro_rules! foo {
     () => (()) //~ ERROR: blocks in constants are limited to items and tail expressions
 }
-static C: uint = { foo!(); 2 };
+static C: usize = { foo!(); 2 };
 
-static D: uint = { let x = 4u; 2 };
+static D: usize = { let x = 4u; 2 };
 //~^ ERROR: blocks in constants are limited to items and tail expressions
 
 pub fn main() {