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

Allow impl Fn() -> impl Trait in return position #93582

Merged
merged 7 commits into from
Oct 30, 2022

Commits on Oct 25, 2022

  1. Allow impl Fn() -> impl Trait in return position

    This allows writing the following function signatures:
    ```rust
    fn f0() -> impl Fn() -> impl Trait;
    fn f3() -> &'static dyn Fn() -> impl Trait;
    ```
    
    These signatures were already allowed for common traits and associated
    types, there is no reason why `Fn*` traits should be special in this
    regard.
    WaffleLapkin committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    8b494f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a4ba2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    00f2277 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc752f5 View commit details
    Browse the repository at this point in the history
  5. --bless

    WaffleLapkin committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    d116859 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    690e037 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e93982a View commit details
    Browse the repository at this point in the history