blob: 4ed908312fb6dcc11a58fb72d96b7f5bd9b98780 [file] [log] [blame]
// check-pass
#![feature(const_eval_limit)]
#![const_eval_limit="1000"]
const CONSTANT: usize = limit();
fn main() {
assert_eq!(CONSTANT, 1764);
}
const fn limit() -> usize {
let x = 42;
x * 42
}