blob: 17900936a299bf987e64c98b63ca827760daf70b [file]
//@ run-fail
//@ error-pattern:assertion `left matches right` failed: 1 + 1 definitely should be 3
//@ error-pattern: left: 2
//@ error-pattern: right: 3
//@ needs-subprocess
use std::assert_matches;
fn main() {
assert_matches!(1 + 1, 3, "1 + 1 definitely should be 3");
}