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