diff options
Diffstat (limited to 'src/test/run-pass/enum-nullable-const-null-with-fields.rs')
| -rw-r--r-- | src/test/run-pass/enum-nullable-const-null-with-fields.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/run-pass/enum-nullable-const-null-with-fields.rs b/src/test/run-pass/enum-nullable-const-null-with-fields.rs index 5defd837022..a48f3bcd59c 100644 --- a/src/test/run-pass/enum-nullable-const-null-with-fields.rs +++ b/src/test/run-pass/enum-nullable-const-null-with-fields.rs @@ -9,7 +9,8 @@ // except according to those terms. use std::result::{Result,Ok}; -static C: Result<(), ~int> = Ok(()); + +static C: Result<(), Box<int>> = Ok(()); // This is because of yet another bad assertion (ICE) about the null side of a nullable enum. // So we won't actually compile if the bug is present, but we check the value in main anyway. |
