blob: b15b7428cdd0c478df0fd32acfa84e7e36985334 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | // build-pass
#![feature(generic_const_exprs)]
#![allow(unused_braces, incomplete_features)]
pub trait AnotherTrait{
    const ARRAY_SIZE: usize;
}
pub trait Shard<T: AnotherTrait>:
    AsMut<[[u8; T::ARRAY_SIZE]]>
where
    [(); T::ARRAY_SIZE]: Sized
{
}
fn main() {}
 |