mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
14 lines
239 B
Rust
14 lines
239 B
Rust
// compile-flags: --test
|
|
// run-pass
|
|
|
|
#![feature(core_intrinsics, generic_assert, generic_assert_internals)]
|
|
|
|
#[should_panic(expected = "Custom user message")]
|
|
#[test]
|
|
fn test() {
|
|
assert!(1 == 3, "Custom user message");
|
|
}
|
|
|
|
fn main() {
|
|
}
|