Skip to content

Rustdoc generic array impl doesnt show length #61487

Closed

Description

The following code:

#![feature(const_generics)]

pub trait Array {
    type Item;
}

impl <T, const N: usize> Array for [T; N] {
    type Item = T;
}

produces the following docpage:
https://imge.to/i/vedzx

Obviously the N is missing in the specification for what type the trait is implemented.. for [T; _]

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

Metadata

Labels

A-const-genericsArea: const generics (parameters and arguments)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc 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