summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/assert-eq-macro-msg.rs
blob: accbd2d1e7f501d4bb3c774ff6b2f9dd0a2d5703 (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: `3`: 1 + 1 definitely should be 3'
// ignore-emscripten no processes

fn main() {
    assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");
}