generic_const_expr: doc test does not compile while similar lib test compiles fine #94321
Labels
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.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Update(fmease, 2024-01-24): #94321 (comment):
I realized thanks to #94287 (comment); maybe a better diagnostic could help here.
The doc test for
foo
and the testtests::test
contain the same code (the only difference is theuse
statement which has to be different). The lib test passes but the doc test fails to compile.cargo +nightly test
:Meta
rustc +nightly --version --verbose
:The text was updated successfully, but these errors were encountered: