2021-03-13 05:14:57 -06:00
|
|
|
// 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)]
|
|
|
|
|
2021-07-16 13:26:20 -05:00
|
|
|
use std::assert_matches::assert_matches;
|
2021-07-07 11:25:46 -05:00
|
|
|
|
2021-03-13 05:14:57 -06:00
|
|
|
fn main() {
|
|
|
|
assert_matches!(1 + 1, 3, "1 + 1 definitely should be 3");
|
|
|
|
}
|