// build-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] pub trait Target { const LENGTH: usize; } pub struct Container where [(); T::LENGTH]: Sized, { _target: T, } impl Container where [(); T::LENGTH]: Sized, { pub fn start( _target: T, ) -> Container { Container { _target } } } fn main() {}