mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 16:37:36 +00:00
![]() Add a separate error for `dyn Trait` in `const fn` Previously "trait bounds other than `Sized` on const fn parameters are unstable" error was used for both trait bounds (`<T: Trait>`) and trait objects (`dyn Trait`). This was pretty confusing. This PR adds a separate error for trait objects: "trait objects in const fn are unstable". The error for trait bounds is otherwise intact. This is follow up to #88907 r? ``@estebank`` ``@rustbot`` label: +A-diagnostics |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |