e64339645b
This verifies that a static item evaluates to true, at compile time.
6 lines
90 B
Rust
6 lines
90 B
Rust
#[static_assert]
|
|
static a: bool = false; //~ ERROR static assertion failed
|
|
|
|
fn main() {
|
|
}
|