about summary refs log tree commit diff
path: root/tests/ui/macros/assert-eq-macro-msg.rs
blob: 9ef7552cc7b2db3c303b7f1c4d5d2bf42e86b412 (plain)
1
2
3
4
5
6
7
8
9
//@ run-fail
//@ error-pattern:assertion `left == right` failed: 1 + 1 definitely should be 3
//@ error-pattern:  left: 2
//@ error-pattern: right: 3
//@ needs-subprocess

fn main() {
    assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");
}