Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
test
/
ui
/
consts
/
const_limit
/
const_eval_limit_not_reached.rs
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
}