Skip to content

HRTB plus an additional bound in container whithout dyn #1422

@leudz

Description

@leudz

Having something like:

type Alias = Box<for<'a> Test<'a> + Send>;

triggers some syntax errors:

  • expected COMMA and expected R_ANGLE right after Test<'a>
  • expected SEMI and expected an item at the last angle bracket
  • expected an item at the semi-colon

It works perfectly fine if I add the dyn that should have been there from the beginning.
I tried a few things and only the first two errors seem to be related to this issue, the others being a result of them.

Here's a playground.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserparser issuesS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions