]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/assert-matches-macro-msg.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / 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 }