static_assert
macroCargo.toml:
[dependencies]
static_assert_macro = "1.0.0"
Your code:
#[macro_use]
extern crate static_assert_macro;
static_assert!(1 < 2);
See https://nodakai.github.io/rust-staticassertmacro for more details.
This crate is a free software distributed under the Apache 2.0 license.