This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
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
}
Reference in New Issue
Copy Permalink