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

pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
    *t == *t
    //~^ ERROR mismatched types
    // FIXME(effects): diagnostic
}

fn main() {}