mod items need to be marked with cfg(test)
not test
.
This commit is contained in:
parent
c14aa7eba8
commit
880e300ed7
@ -797,7 +797,7 @@ fn test_run_basic() {
|
||||
po.recv();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(test)]
|
||||
struct Wrapper {
|
||||
mut f: Option<Chan<()>>
|
||||
}
|
||||
|
@ -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::*;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user