feature adt_const_params does not work with &'static str anymore #138657
Labels
A-const-generics
Area: const generics (parameters and arguments)
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.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I cannot use the feature
adt_const_params
with&'static str
anymore. It works on toolchainnightly-2024-07-21
but not anymore on toolchainnightly-2024-07-22
(it is when rust went from version1.81.0-nightly
to1.82.0-nightly
). I don't know if I am doing something wrong, because I feel like someone else should have seen the problem, but I didn't find any issue on thisCode
I tried this code:
I expected to see this happen: The code compiles
Instead, this happened: The code does not compile:
Version it worked on
toolchain nightly-2024-07-21 (rust 1.81.0-nightly)
rustc -- version --verbose
:Version with regression
toolchain nightly-2024-07-22 (rust 1.82.0-nightly)
rustc --version --verbose
:It does not work on latest nightly either
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: