Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shnatsel/fast_assert
/ fails_custom_message
Function
fails_custom_message
fast_assert/src/lib.rs:86–90 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
84
#[test]
85
#[should_panic]
86
fn fails_custom_message() {
87
let x = 100;
88
let y = 0;
89
fast_assert!(x < y,
"x ({}) should be less than y ({})"
, x, y);
90
}
91
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected