Skip to content

Instantly share code, notes, and snippets.

@ashleygwilliams
Created June 16, 2016 19:17
Show Gist options
  • Save ashleygwilliams/84931559225646acff91e4234cf44a73 to your computer and use it in GitHub Desktop.
Save ashleygwilliams/84931559225646acff91e4234cf44a73 to your computer and use it in GitHub Desktop.
 Compiling assert_approx_eq v0.2.0 (file:///Users/ag_dubs/rust/assert_approx_eq)
src/lib.rs:17:27: 17:30 error: no method named `abs` found for type `_` in the current scope
src/lib.rs:17         assert!((*a - *b).abs() < 1.0e-6,
                                        ^~~
src/lib.rs:17:9: 20:26 note: in this expansion of assert! (defined in <std macros>)
src/lib.rs:32:3: 32:27 note: in this expansion of assert_approx_eq! (defined in src/lib.rs)
error: aborting due to previous error
error: Could not compile `assert_approx_eq`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment