rust/tests/ui/macros/assert-eq-macro-msg.rs
2023-01-11 09:32:08 +00:00

10 lines
272 B
Rust

// run-fail
// error-pattern:panicked at 'assertion failed: `(left == right)`
// error-pattern: left: `2`
// error-pattern:right: `3`: 1 + 1 definitely should be 3'
// ignore-emscripten no processes
fn main() {
assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");
}