Calling non-const function core::slice::iter::<impl IntoIterator for &[u8]>::into_iter
#125490
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I didn't find a clear issue that was talking about that, and I'm clearly in the "nightly scape" of Rust here. I'm trying to build the following code (don't take attention to the possible unsafe part of this code, I omitted voluntary some part for better clarity):
Playground link:
It does build if I don't const inline the call to
from_slice_unchecked()
though. But here, I'm wanted to create this buffer at build time and I don't find a way to do it "easily".The closer issue I could find is #103265 which contains this closed PR #102225.
The text was updated successfully, but these errors were encountered: