]> git.proxmox.com Git - rustc.git/blob - src/test/ui/macros/assert-matches-macro-msg.rs
43be9532f5d1c068e70ea61217a6335476783ca8
[rustc.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 fn main() {
10 assert_matches!(1 + 1, 3, "1 + 1 definitely should be 3");
11 }