summary refs log tree commit diff
path: root/src/test/ui/macros/assert-matches-macro-msg.rs
blob: 43be9532f5d1c068e70ea61217a6335476783ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-fail
// error-pattern:panicked at 'assertion failed: `(left matches right)`
// error-pattern: left: `2`
// error-pattern:right: `3`: 1 + 1 definitely should be 3'
// ignore-emscripten no processes

#![feature(assert_matches)]

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