Answers for "assert rust"

0

assert rust

// assert(expr[, message, ...])

// Panics
assert!(1 == 2);

// Panics with a message
assert!(1 == 2, "The rules of the universe arent broken!");
Posted by: Guest on September-07-2021

Browse Popular Code Answers by Language