1 error[E0277]: the trait bound `T: ~const Foo` is not satisfied
2 --> $DIR/super-traits-fail-2.rs:15:5
5 | ^ - required by a bound introduced by this call
7 | the trait `~const Foo` is not implemented for `T`
9 note: the trait `Foo` is implemented for `T`, but that implementation is not `const`
10 --> $DIR/super-traits-fail-2.rs:15:5
14 help: consider further restricting this bound
16 LL | const fn foo<T: Bar + ~const Foo>(x: &T) {
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0277`.