rust/src/test/run-pass/static-assert.rs
Alex Crichton 30862a64c2 Fix run-pass tests to have 'pub fn main'
This is required by the check-fast target because each test is slurped up into a
submodule.
2013-09-25 00:43:37 -07:00

15 lines
192 B
Rust

#[static_assert]
static b: bool = true;
#[static_assert]
static c: bool = 1 == 1;
#[static_assert]
static d: bool = 1 != 2;
#[static_assert]
static f: bool = (4/2) == 2;
pub fn main() {
}