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<()>>
}