Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a separate error for dyn Trait in const fn #89021

Merged

Commits on Sep 16, 2021

  1. 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 patch adds a separeta error for trait objects: "trait objects in const fn
    are unstable". The error for trait bounds is otherwise intact.
    WaffleLapkin committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    f84000d View commit details
    Browse the repository at this point in the history