MCPcopy Create free account
hub / github.com/Shnatsel/fast_assert / assert_failed

Function assert_failed

fast_assert/src/lib.rs:50–56  ·  view source on GitHub ↗
(msg_fn: F)

Source from the content-addressed store, hash-verified

48 #[cold]
49 #[track_caller]
50 pub fn assert_failed<F>(msg_fn: F)
51 where
52 F: FnOnce(),
53 {
54 // We simply call the closure, which contains the panic!.
55 msg_fn();
56 }
57}
58
59/// We only run basic sanity checks here. The really interesting tests are in a separate crate in this workspace.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected