Home
last modified time | relevance | path

Searched refs:const_assert (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/static-assertions-rs/tests/
Dconst.rs7 const_assert!(true && (true != false));
8 const_assert!((true && true) != false);
14 const_assert!(FIVE * 2 == 10);
15 const_assert!(FIVE > 2);
/third_party/rust/crates/rustix/src/
Dconst_assert.rs7 macro_rules! const_assert { macro
17 const_assert!(true); in test_const_assert()
22 const_assert!(true); in test_const_assert_in_const_fn()
Dlib.rs135 pub(crate) mod const_assert; module
/third_party/rust/crates/static-assertions-rs/src/
Dconst_assert.rs52 macro_rules! const_assert { macro
81 const_assert!($x == $y);
107 const_assert!($x != $y);
Dlib.rs97 mod const_assert; module
/third_party/rust/crates/static-assertions-rs/
DREADME.md65 - [`const_assert!`]
79 context. Using [`const_assert!`], one can check that a string generated from
85 const_assert!(DATA.len() < 512);
186 [`const_assert!`]: https://docs.rs/static_assertions/1.1.0/static_assertions/macro.const_…
DCHANGELOG.md38 - **[breaking]** `const_assert!` macro to only take one expression
74 - `const_assert!` now only takes `bool` values whereas integer (or other type)
139 - Allow `assert_eq_size`, `const_assert`, and `const_assert_eq` in non-function
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Derrno.rs70 const_assert!(encoded >= 0xf001); in from_errno()