blob: 626a9e2b2109e86b03c9b5d3f87c15ad0667fc8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![crate_name = "foo"]
#![feature(const_generics)]
pub trait Array {
type Item;
}
// @has foo/trait.Array.html
// @has - '//div[@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;
}
|