summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const-generics/const-generic-slice.rs
blob: 80a9ab3f12e881e708cdb480f5fe6f8ed8c4a0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_name = "foo"]

pub trait Array {
    type Item;
}

// @has foo/trait.Array.html
// @has - '//*[@class="impl"]' 'impl<T, const N: usize> Array for [T; N]'
impl<T, const N: usize> Array for [T; N] {
    type Item = T;
}