Skip to content

Permit unused generic const parameters in type definitions #60047

Description

@varkor
#![feature(const_generics)]

struct A<const N: usize>;

should compile, as there are no variance issues with respect to const parameters. (See #44580 (comment).)

Activity

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

Metadata

Metadata

Assignees

Labels

A-const-genericsArea: const generics (parameters and arguments)A-type-systemArea: Type systemC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions