]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/assert-ne-macro-msg.rs
Rollup merge of #106889 - scottmcm:windows-mut, r=cuviper
[rust.git] / tests / ui / macros / assert-ne-macro-msg.rs
1 // run-fail
2 // error-pattern:panicked at 'assertion failed: `(left != right)`
3 // error-pattern: left: `2`
4 // error-pattern:right: `2`: 1 + 1 definitely should not be 2'
5 // ignore-emscripten no processes
6
7 fn main() {
8     assert_ne!(1 + 1, 2, "1 + 1 definitely should not be 2");
9 }