diff options
| author | Devon Hollowood <devonhollowood@gmail.com> | 2016-10-21 00:48:39 -0700 |
|---|---|---|
| committer | Devon Hollowood <devonhollowood@gmail.com> | 2016-10-21 00:48:39 -0700 |
| commit | 095850594f9140ae9d25eb3801aa4442295b0a91 (patch) | |
| tree | f134772281c45a33f83203ca0a5142e38086e78f | |
| parent | fb1ef4f42c0aefa3f92b3f81ad4f24bdcb0b1753 (diff) | |
| download | rust-095850594f9140ae9d25eb3801aa4442295b0a91.tar.gz rust-095850594f9140ae9d25eb3801aa4442295b0a91.zip | |
Fix `test_unwrap_or_default`
| -rw-r--r-- | src/libcoretest/result.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcoretest/result.rs b/src/libcoretest/result.rs index bc2cd8bbfc6..f80cb8d5207 100644 --- a/src/libcoretest/result.rs +++ b/src/libcoretest/result.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(result_unwrap_or_default)] + fn op1() -> Result<isize, &'static str> { Ok(666) } fn op2() -> Result<isize, &'static str> { Err("sadface") } |
