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() {}
|