diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 48b5e080394..c7ba255803a 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -816,7 +816,7 @@ pub fn add(left: usize, right: usize) -> usize { #[cfg(test)] mod tests { use super::*; - + #[test] fn it_works() { let result = add(2, 2); diff --git a/tests/testsuite/init/ignores_failure_to_format_source/out/src/lib.rs b/tests/testsuite/init/ignores_failure_to_format_source/out/src/lib.rs index b46105ccdb7..7d12d9af819 100644 --- a/tests/testsuite/init/ignores_failure_to_format_source/out/src/lib.rs +++ b/tests/testsuite/init/ignores_failure_to_format_source/out/src/lib.rs @@ -5,7 +5,7 @@ pub fn add(left: usize, right: usize) -> usize { #[cfg(test)] mod tests { use super::*; - + #[test] fn it_works() { let result = add(2, 2);