1 error: ~const can only be applied to `#[const_trait]` traits
2 --> $DIR/super-traits-fail-3.rs:12:19
4 LL | trait Bar: ~const Foo {}
7 error: ~const can only be applied to `#[const_trait]` traits
8 --> $DIR/super-traits-fail-3.rs:15:24
10 LL | const fn foo<T: ~const Bar>(x: &T) {
13 error: aborting due to 2 previous errors