Nightly compiler complains about a disabled nightly feature used in an impl block, but the block is cfg-gated by a disabled feature #140960
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
I tried this code in the playground (using Rust nightly):
I expected to see this happen:
cfg_attr
at the beginning doesn't apply i.e. theassociated_const_equality
feature isn't enabled.impl
block at the last line (which depends onassociated_const_equality
) to be excluded from conditional compilation.Instead, this happened: the compiler complained that the
impl
block uses a nightly feature that isn't enabled (rather than ignoring theimpl
block altogether).Meta
Using the nightly compiler in the playground (https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024).
From the error message:
The text was updated successfully, but these errors were encountered: