rust/tests/ui/const-generics/issues/issue-89334.rs

17 lines
272 B
Rust
Raw Normal View History

2021-10-25 09:04:23 -05:00
// 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() {}