1 #![feature(const_generics, const_evaluatable_checked)]
2 #![allow(incomplete_features)]
3 #![deny(where_clauses_object_safety)]
6 const fn bar<T: ?Sized>() -> usize { 7 }
9 fn test(&self) where [u8; bar::<Self>()]: Sized;
10 //~^ ERROR the trait `Foo` cannot be made into an object
11 //~| WARN this was previously accepted by the compiler but is being phased out
15 fn test(&self) where [u8; bar::<Self>()]: Sized {}
18 fn use_dyn(v: &dyn Foo) {