]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issues/issue-89334.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / const-generics / issues / issue-89334.rs
1 // build-pass
2
3 #![feature(generic_const_exprs)]
4 #![allow(unused_braces, incomplete_features)]
5
6 pub trait AnotherTrait{
7     const ARRAY_SIZE: usize;
8 }
9 pub trait Shard<T: AnotherTrait>:
10     AsMut<[[u8; T::ARRAY_SIZE]]>
11 where
12     [(); T::ARRAY_SIZE]: Sized
13 {
14 }
15
16 fn main() {}