1 #![feature(const_fn_trait_bound)]
2 #![feature(const_trait_impl)]
8 fn b() where Self: ~const Bar;
12 const fn test1<T: ~const Foo + Bar>() {
15 //~^ ERROR the trait bound
17 //~^ ERROR the trait bound
20 const fn test2<T: ~const Foo + ~const Bar>() {
29 //~^ ERROR the trait bound
31 //~^ ERROR the trait bound
34 fn test4<T: Foo + Bar>() {