2022-06-15 05:37:40 -05:00
|
|
|
// aux-build:common.rs
|
|
|
|
// only-x86_64
|
|
|
|
// run-pass
|
2022-09-19 16:43:21 -05:00
|
|
|
// needs-unwind Asserting on contents of error message
|
2022-06-15 05:37:40 -05:00
|
|
|
|
2023-05-24 19:15:50 -05:00
|
|
|
#![feature(core_intrinsics, generic_assert)]
|
2022-06-15 05:37:40 -05:00
|
|
|
|
|
|
|
extern crate common;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
common::test!(
|
|
|
|
let mut _nothing = ();
|
|
|
|
[ 1 == 3 ] => "Assertion failed: 1 == 3"
|
|
|
|
);
|
|
|
|
}
|