[const_closures, const_mut_refs, effects] thread 'rustc' panicked at rustc_middle/src/ty/util.rs:945:22: ConstContext::Maybe must have host effect param #125866
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-const_closures
`#![feature(const_closures)]`
F-const_mut_refs
`#![feature(const_mut_refs)]`
F-const_trait_impl
`#![feature(const_trait_impl)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I know that
const_closures
feature is incomplete (#106003). This is to report that I managed to use it with simple const closures such asconst |i| 2 * i as u32
, but slightly more complex expressions likeconst |i| 2 * i as u32 + 1
cause an ICE.Code
Meta
rustc --version --verbose
:I'm using the Rust Playground today:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: