mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
10 lines
280 B
Rust
10 lines
280 B
Rust
|
// run-fail
|
||
|
// error-pattern:panicked at 'assertion failed: `(left != right)`
|
||
|
// error-pattern: left: `2`
|
||
|
// error-pattern:right: `2`: 1 + 1 definitely should not be 2'
|
||
|
// ignore-emscripten no processes
|
||
|
|
||
|
fn main() {
|
||
|
assert_ne!(1 + 1, 2, "1 + 1 definitely should not be 2");
|
||
|
}
|