Skip to content

Bound and supertrait bounds can be empty #30106

Closed
@bluss

Description

@bluss

These examples all compile:

trait A : { }

struct Foo<T: > { t: T }

fn foo<T: >() { }

I expected empty bounds lists to be an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of Rust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions