Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
fn check_and_reset() -> bool { unreachable!() }
28
29
fn do_alloc() {
30
let _tmp: Box<u32> = Box::new(42);
31
}
32
33
#[test]
34
fn ok_noop() {
Callers
9
ok_noop
Function · 0.85
ok_simple
Function · 0.85
ok_nested
Function · 0.85
forbidden_simple
Function · 0.85
forbidden_in_nested
Function · 0.85
forbidden_after_nested
Function · 0.85
unwind_ok
Function · 0.85
unwind_nested
Function · 0.85
unwind_nested2
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected