summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/assert-ne-macro-msg.rs
blob: fc0472b99b4289f5ce0729e9a90a1757f32f4d0e (plain)
1
2
3
4
5
6
7
8
9
// 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");
}