Last active
August 29, 2015 14:22
-
-
Save emidoots/da290e16535c9fdf60fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I wrote this code: | |
``` | |
/// # Examples | |
/// | |
/// ``` | |
/// extern crate num; | |
/// use self::num::Float; | |
/// use fiz_math::Vec2; | |
/// | |
/// let n:f32 = Float::nan(); | |
/// ``` | |
``` | |
It produces: | |
stephen@stephen-Aspire-V3-572G:~/Desktop/rust/fiz-math$ cargo test vec2::is_nan | |
Compiling fiz-math v0.0.1 (file:///home/stephen/Desktop/rust/fiz-math) | |
Running target/debug/fiz_math-a6726527780c08f2 | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured | |
Doc-tests fiz-math | |
running 1 test | |
test vec2::is_nan_0 ... FAILED | |
failures: | |
---- vec2::is_nan_0 stdout ---- | |
<anon>:5:9: 5:12 error: unresolved import `num::traits::Float`. Did you mean `self::num::traits`? | |
<anon>:5 use num::traits::Float; | |
^~~ | |
<anon>:6:9: 6:17 error: unresolved import `fiz_math::Vec2`. Maybe a missing `extern crate fiz_math`? | |
<anon>:6 use fiz_math::Vec2; | |
^~~~~~~~ | |
error: aborting due to 2 previous errors | |
thread 'vec2::is_nan_0' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:152 | |
failures: | |
vec2::is_nan_0 | |
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured | |
thread '<unnamed>' panicked at 'Some tests failed', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libtest/lib.rs:260 | |
thread '<main>' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/libstd/thread/mod.rs:704 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment