1 #![feature(const_generics, const_evaluatable_checked)]
2 #![allow(incomplete_features)]
5 const fn bar<T: ?Sized>() -> usize { 7 }
8 fn test(&self) -> [u8; bar::<Self>()];
12 fn test(&self) -> [u8; bar::<Self>()] {
17 fn use_dyn(v: &dyn Foo) { //~ERROR the trait `Foo` cannot be made into an object