summary refs log tree commit diff
path: root/src/test/run-pass/static-assert.rs
blob: 93c8d67c9c0a5a5d32df79018b681bea1a4ff0b9 (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;

pub fn main() {
}