2021-10-03 23:33:43 -05:00
|
|
|
// Test that `assert` works in consts.
|
2019-11-17 23:11:42 -06:00
|
|
|
|
|
|
|
const _: () = assert!(true);
|
|
|
|
|
|
|
|
const _: () = assert!(false);
|
2021-10-03 23:33:43 -05:00
|
|
|
//~^ ERROR evaluation of constant value failed
|
2019-11-17 23:11:42 -06:00
|
|
|
|
|
|
|
fn main() {}
|