error using Vec::<dyn Any>::new()
in a const fn
#84170
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I tried this code:
(Playground link)
I expected this to compile, since
Vec::new()
is a const function, and nodyn
anything needs to be created.Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: