Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
consts
/
const_limit
/
feature-gate-const_eval_limit.rs
blob: 61119d7511d49262fc41355eea7720d7155d9eb4 [
file
] [
log
] [
blame
]
#![
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
}