diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-01-08 21:54:35 +1100 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-01-08 11:02:24 -0500 |
| commit | 0c70ce1424f380360dcc8d857c68d2df1a27b6fd (patch) | |
| tree | 74d2e8e7267b4edcc4d5defe5a9b1a34d4e1d215 /src/test/compile-fail/check-static-values-constraints.rs | |
| parent | 4f5a57e80ef6c029278f1e8ef59e13dcea9b255b (diff) | |
| download | rust-0c70ce1424f380360dcc8d857c68d2df1a27b6fd.tar.gz rust-0c70ce1424f380360dcc8d857c68d2df1a27b6fd.zip | |
Update compile fail tests to use isize.
Diffstat (limited to 'src/test/compile-fail/check-static-values-constraints.rs')
| -rw-r--r-- | src/test/compile-fail/check-static-values-constraints.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/check-static-values-constraints.rs b/src/test/compile-fail/check-static-values-constraints.rs index c13faacfee4..7c4f9ada2d3 100644 --- a/src/test/compile-fail/check-static-values-constraints.rs +++ b/src/test/compile-fail/check-static-values-constraints.rs @@ -26,7 +26,7 @@ impl Drop for WithDtor { // 3. Expr calls with unsafe arguments for statics are rejected enum SafeEnum { Variant1, - Variant2(int), + Variant2(isize), Variant3(WithDtor), Variant4(String) } @@ -45,7 +45,7 @@ static STATIC3: SafeEnum = SafeEnum::Variant3(WithDtor); // a destructor. enum UnsafeEnum { Variant5, - Variant6(int) + Variant6(isize) } impl Drop for UnsafeEnum { @@ -132,11 +132,11 @@ static STATIC16: (&'static Box<MyOwned>, &'static Box<MyOwned>) = ( static mut STATIC17: SafeEnum = SafeEnum::Variant1; //~^ ERROR mutable statics are not allowed to have destructors -static STATIC19: Box<int> = +static STATIC19: Box<isize> = box 3; //~^ ERROR statics are not allowed to have custom pointers pub fn main() { - let y = { static x: Box<int> = box 3; x }; + let y = { static x: Box<isize> = box 3; x }; //~^ ERROR statics are not allowed to have custom pointers } |
