summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const-generics/const-generic-slice.rs
blob: 4279de91f56c1420bab481156484d54cdd9fe939 (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 has-srclink"]' 'impl<T, const N: usize> Array for [T; N]'
impl<T, const N: usize> Array for [T; N] {
    type Item = T;
}