2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
static C: Result<(), Box<isize>> = Ok(());
|
2014-01-09 22:24:31 -08:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
assert!(C.is_ok());
|
|
|
|
}
|