blob: 1c49593cd53fa399bc8d6451b60d70e13825b3c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(const_eval_limit)]
#![const_eval_limit="18_446_744_073_709_551_615"]
//~^ ERROR `limit` must be a non-negative integer
const CONSTANT: usize = limit();
fn main() {
assert_eq!(CONSTANT, 1764);
}
const fn limit() -> usize {
let x = 42;
x * 42
}
|