Macro std::runtime::const_eval
Forces the evaluation of the argument at compile time.
Example
use std::runtime::const_eval;
assert_eq!(const_eval!(1 + 1), 2);
Run this example
use std::runtime::const_eval;
use libc::abort;
const_eval!(abort()); // compile error
Run this example