blob: 61119d7511d49262fc41355eea7720d7155d9eb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![const_eval_limit="42"]
//~^ ERROR the `#[const_eval_limit]` attribute is an experimental feature [E0658]
const CONSTANT: usize = limit();
fn main() {
assert_eq!(CONSTANT, 1764);
}
const fn limit() -> usize {
let x = 42;
x * 42
}
|