Skip to content

Cannot parse global type constraints #5572

@erickt

Description

@erickt

This code:

fn foo<T: ::cmp::Eq>(t: T) { }

fn main() { }

Errors with:

foo.rs:1:10: 1:12 error: expected `,` but found `::`
foo.rs:1 fn foo<T: ::cmp::Eq>(t: T) { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions