summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-fail.rs
blob: fe1abbf42071577852c752bfbe030538f187d58b (plain)
1
2
3
4
5
6
7
8
9
// known-bug: #110395
#![feature(const_trait_impl)]

pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
    *t == *t
    // (remove this) ~^ ERROR can't compare
}

fn main() {}