summary refs log tree commit diff
path: root/src/test/run-pass/static-assert.rs
blob: 81b0c9ff28c3fd6c9758a0bfc2d398dceb209988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[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;

fn main() {
}