summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs
blob: 6a1435f792bf41eaaa5fbe95b47d4909e14e0f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {
}