1 // Regression test for <https://github.com/rust-lang/rust/issues/92859>.
3 #![allow(incomplete_features)]
4 #![feature(generic_const_exprs)]
8 // @has 'foo/trait.Foo.html'
10 pub trait Foo: Sized {
13 fn arrayify(self) -> [Self; Self::WIDTH];
16 impl<T: Sized> Foo for T {
17 const WIDTH: usize = 1;
19 // @has - '//*[@id="tymethod.arrayify"]/*[@class="code-header"]' \
20 // 'fn arrayify(self) -> [Self; Self::WIDTH]'
21 fn arrayify(self) -> [Self; Self::WIDTH] {