]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/assert-matches-macro-msg.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / ui / macros / assert-matches-macro-msg.rs
1 // run-fail
2 // error-pattern:panicked at 'assertion failed: `(left matches right)`
3 // error-pattern: left: `2`
4 // error-pattern:right: `3`: 1 + 1 definitely should be 3'
5 // ignore-emscripten no processes
6
7 #![feature(assert_matches)]
8
9 use std::assert_matches::assert_matches;
10
11 fn main() {
12     assert_matches!(1 + 1, 3, "1 + 1 definitely should be 3");
13 }