Panics if cond
evaluates to false.
Examples
assert!(1 + 1 == 2);
Run this example
assert!(1 + 1 == 3); // panics
Run this example
Panics if cond
evaluates to false.
assert!(1 + 1 == 2);
Run this example
assert!(1 + 1 == 3); // panics
Run this example