rust/tests/rustdoc/const-generics/const-generic-slice.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
227 B
Rust
Raw Normal View History

2019-06-06 17:58:32 -05:00
#![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] {
2019-06-06 17:58:32 -05:00
type Item = T;
}