Skip to content

Commit dd12c8b

Browse files
committed
rollup merge of rust-lang#24931: jooert/patch-1
Since rust-lang#24783, the style guidelines recommend that unit tests should live in a submodule `tests` rather than `test` to not clash with the possible use of libtest. This is especially important for benchmark tests as they require libtest. Fixes rust-lang#24923.
2 parents 416e412 + f99658d commit dd12c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/benchmark-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn add_two(a: i32) -> i32 {
1313
}
1414
1515
#[cfg(test)]
16-
mod test {
16+
mod tests {
1717
use super::*;
1818
use test::Bencher;
1919

0 commit comments

Comments
 (0)