rust/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs
2023-01-11 09:32:08 +00:00

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() {
}