This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
58e901b6fd
rust
/
tests
/
ui
/
consts
/
const-call.rs
9 lines
112 B
Rust
Raw
Normal View
History
Unescape
Escape
fix ice in fn call const evaluation
2015-11-03 10:34:11 +01:00
fn
f
(
x
:
usize
)
->
usize
{
x
}
fn
main
(
)
{
rustc_const_eval: demand that the MIR qualify_consts ran on each evaluated body.
2017-02-20 03:55:28 +02:00
let
_
=
[
0
;
f
(
2
)
]
;
bless you
2021-12-10 01:10:05 +08:00
//~^ ERROR cannot call non-const fn
fix ice in fn call const evaluation
2015-11-03 10:34:11 +01:00
}
Copy permalink