about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-pass.stderr
blob: 1f7cf689e95816402678858dfd64a9f00a6a0dfb (plain)
1
2
3
4
5
6
7
8
error: ~const can only be applied to `#[const_trait]` traits
  --> $DIR/call-generic-method-pass.rs:18:32
   |
LL | const fn equals_self<T: ~const PartialEq>(t: &T) -> bool {
   |                                ^^^^^^^^^

error: aborting due to 1 previous error