We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1643655 commit 5eaa51cCopy full SHA for 5eaa51c
Cargo.toml
@@ -28,7 +28,6 @@ tempfile = "3.18.0"
28
name = "benchmarks"
29
harness = false
30
31
-# This enables examples to be treated as tests when running cargo test
32
[[example]]
33
name = "error-handling-basic"
34
test = true
examples/memory-leak.rs
@@ -29,14 +29,3 @@ fn check_memory_exists_and_holds_vec_data(ptr_str: &str) -> bool {
let vec_ptr = addr as *const Vec<u8>;
!vec_ptr.is_null() && unsafe { std::ptr::read_volatile(vec_ptr) }.capacity() > 0
}
-
-// Add a smoke test to make sure this example stays working
-#[cfg(test)]
35
-mod example_memory_leak {
36
- use super::*;
37
38
- #[test]
39
- fn execute_main() {
40
- main().unwrap();
41
- }
42
-}
0 commit comments