error: expected a trait, found type --> $DIR/impl-tilde-const-trait.rs:6:6 | LL | impl ~const T for S {} | ^^^^^^^^ error: aborting due to 1 previous error