mod items need to be marked with cfg(test) not test.

This commit is contained in:
Felix S. Klock II 2013-04-30 14:36:18 +02:00
parent c14aa7eba8
commit 880e300ed7
2 changed files with 2 additions and 2 deletions

View File

@ -797,7 +797,7 @@ fn test_run_basic() {
po.recv();
}
#[test]
#[cfg(test)]
struct Wrapper {
mut f: Option<Chan<()>>
}

View File

@ -64,7 +64,7 @@ fn test_fuzzy_eq_eps() {
assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5));
}
#[test]
#[cfg(test)]
mod test_complex{
use cmp::*;