Skip to main content

let_assert

Macro let_assert 

Source
macro_rules! let_assert {
    ($($tokens:tt)*) => { ... };
}
👎Deprecated since 0.3.17: use assert2::assert!(let ...) instead
Expand description

Assert that an expression matches a pattern and make all captured variables available in the calling scope.

Since version 0.3.17 this is is equivalent to assert!(let pattern = expression), and this macro is now deprecated.