MCPcopy Create free account
hub / github.com/Windfisch/rust-assert-no-alloc / do_alloc

Function do_alloc

tests/test.rs:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27fn check_and_reset() -> bool { unreachable!() }
28
29fn do_alloc() {
30 let _tmp: Box<u32> = Box::new(42);
31}
32
33#[test]
34fn ok_noop() {

Callers 9

ok_noopFunction · 0.85
ok_simpleFunction · 0.85
ok_nestedFunction · 0.85
forbidden_simpleFunction · 0.85
forbidden_in_nestedFunction · 0.85
forbidden_after_nestedFunction · 0.85
unwind_okFunction · 0.85
unwind_nestedFunction · 0.85
unwind_nested2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected