diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-15 09:50:17 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-10-02 07:55:41 -0700 |
| commit | d9d1dfc1955fabb7ee3a55e9c84cdcd5aad67417 (patch) | |
| tree | 44ee6031936df55eb8d34db48298b2a67b21cc3b /src/test/run-pass/numeric-method-autoexport.rs | |
| parent | 17548378a707fae752dc722e2fb767a65195e422 (diff) | |
| download | rust-d9d1dfc1955fabb7ee3a55e9c84cdcd5aad67417.tar.gz rust-d9d1dfc1955fabb7ee3a55e9c84cdcd5aad67417.zip | |
std: Replace num::IntConvertible with {To,From}Primitive
Diffstat (limited to 'src/test/run-pass/numeric-method-autoexport.rs')
| -rw-r--r-- | src/test/run-pass/numeric-method-autoexport.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/numeric-method-autoexport.rs b/src/test/run-pass/numeric-method-autoexport.rs index f2df3fc66ea..1422f93e612 100644 --- a/src/test/run-pass/numeric-method-autoexport.rs +++ b/src/test/run-pass/numeric-method-autoexport.rs @@ -36,6 +36,6 @@ pub fn main() { // floats // num - assert_eq!(10f32.to_int(), 10); - assert_eq!(10f64.to_int(), 10); + assert_eq!(10f32.to_int().unwrap(), 10); + assert_eq!(10f64.to_int().unwrap(), 10); } |
