mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
61bfe3653b
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 |