This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-02-21 11:23:03 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
1d78ce681e
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 09:34:11 +00: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 01:55:28 +00:00
let
_
=
[
0
;
f
(
2
)
]
;
bless you
2021-12-09 17:10:05 +00:00
//~^ ERROR cannot call non-const fn
fix ice in fn call const evaluation
2015-11-03 09:34:11 +00:00
}
Reference in New Issue
Copy Permalink