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

This commit is contained in:
Felix S. Klock II
2013-04-30 13:02:29 +02:00
parent 5f1a90ebe7
commit c14aa7eba8
+2 -2
View File
@@ -833,7 +833,7 @@ fn consume(&mut self, f: &fn(T)) {
}
}
#[test]
#[cfg(test)]
mod test_map {
use container::{Container, Map, Set};
use option::{None, Some};
@@ -1009,7 +1009,7 @@ fn test_expand() {
}
}
#[test]
#[cfg(test)]
mod test_set {
use super::*;
use container::{Container, Map, Set};