Skip to content

Anonymous constants in binders #35

Open
@lcnr

Description

@lcnr

What is this

This is a design document for const generics. Any discussions about its content should be on zulip. The conclusions of these discussions should then be edited back into this issue. Please do not post any comments directly in this issue.

Content

fn foo()
where
    for<'a> [u8; std::mem::size_of::<&'a ()>()]: Sized,
{}

Use the tests from #79313

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-generic-exprsGeneric const expressionsC-design-docsCategory: This is part of our design documentationK-implDocument Kind: regarding implementationP-necessaryPriority: will be needed at some pointS-active

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions