mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
mod items need to be marked with cfg(test) not test.
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user