1 error[E0277]: the trait bound `T: ~const Bar` is not satisfied
2 --> $DIR/trait-where-clause-const.rs:19:5
5 | ^^^^^^ the trait `~const Bar` is not implemented for `T`
7 note: the trait `Bar` is implemented for `T`, but that implementation is not `const`
8 --> $DIR/trait-where-clause-const.rs:19:5
12 help: consider further restricting this bound
14 LL | const fn test1<T: ~const Foo + Bar + ~const Bar>() {
17 error[E0277]: the trait bound `T: ~const Bar` is not satisfied
18 --> $DIR/trait-where-clause-const.rs:21:5
21 | ^^^^^^^^^^^ the trait `~const Bar` is not implemented for `T`
23 note: the trait `Bar` is implemented for `T`, but that implementation is not `const`
24 --> $DIR/trait-where-clause-const.rs:21:5
28 help: consider further restricting this bound
30 LL | const fn test1<T: ~const Foo + Bar + ~const Bar>() {
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0277`.