blob: fea24703ddadf678e30bec05d4ce40aac453bc09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![feature(allow_internal_unstable)]
// Macro to help ensure CONST_ERR lint errors
// are not silenced in external macros.
// https://github.com/rust-lang/rust/issues/65300
#[macro_export]
#[allow_internal_unstable(type_ascription)]
macro_rules! static_assert {
($test:expr) => {
#[allow(dead_code)]
const _: () = [()][!($test) as usize];
}
}
|