2021-02-16 02:06:00 +00:00
|
|
|
// run-pass
|
2021-02-17 00:05:30 +00:00
|
|
|
// compile-flags: -C debug_assertions=yes
|
2021-02-16 02:06:00 +00:00
|
|
|
|
|
|
|
#[allow(unreachable_code)]
|
|
|
|
fn main() {
|
|
|
|
assert!(true, "Failed: {:?}", panic!("assert! evaluated format expressions"));
|
|
|
|
debug_assert!(true, "Failed: {:?}", panic!("debug_assert! evaluated format expressions"));
|
|
|
|
assert_eq!(1, 1, "Failed: {:?}", panic!("assert_eq! evaluated format expressions"));
|
|
|
|
debug_assert_eq!(1, 1, "Failed: {:?}", panic!("debug_assert_eq! evaluated format expressions"));
|
|
|
|
assert_ne!(1, 2, "Failed: {:?}", panic!("assert_ne! evaluated format expressions"));
|
|
|
|
debug_assert_ne!(1, 2, "Failed: {:?}", panic!("debug_assert_ne! evaluated format expressions"));
|
|
|
|
}
|