1 // Like trait-where-clause.rs, but we are calling from a const context.
2 // Checking the validity of traits' where clauses happen at a later stage.
3 // (`rustc_const_eval` instead of `rustc_hir_analysis`) Therefore one file as a
5 #![feature(const_trait_impl)]
13 fn b() where Self: ~const Bar;
14 fn c<T: ~const Bar>();
17 const fn test1<T: ~const Foo + Bar>() {
20 //~^ ERROR the trait bound
22 //~^ ERROR the trait bound
25 const fn test2<T: ~const Foo + ~const Bar>() {