Skip to content

Outlives vs Trait Goal Syntax Collision #147

Open

Description

Both use : in Rust, but the colon is always parsed as outlives in formality.

This was confusing when @jackh726 wrote his projection PR, since it looked like trait goals were failing when they were erroneously parsed as outlives.

Syntax should be changed or some type of validation could perhaps be written to make sure we never try to outlive a trait name on the RHS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions