mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
9 lines
142 B
Rust
9 lines
142 B
Rust
// Test that `assert` works in consts.
|
|
|
|
const _: () = assert!(true);
|
|
|
|
const _: () = assert!(false);
|
|
//~^ ERROR assertion failed
|
|
|
|
fn main() {}
|