assert_panics_with_message

Function assert_panics_with_message 

Source
pub fn assert_panics_with_message(func: impl FnOnce(), msg: &'static str)
Available on crate feature deploy only.
Expand description

Asserts that running the given closure results in a panic with a message containing msg.