rust/tests/ui/macros/assert-ne-macro-msg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
280 B
Rust
Raw Normal View History

2021-03-13 05:14:57 -06:00
// run-fail
// error-pattern:panicked at 'assertion failed: `(left != right)`
// error-pattern: left: `2`
// error-pattern:right: `2`: 1 + 1 definitely should not be 2'
// ignore-emscripten no processes
fn main() {
assert_ne!(1 + 1, 2, "1 + 1 definitely should not be 2");
}