]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs
Update tests after feature stabilization
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / call-generic-method-fail.rs
1 #![feature(const_trait_impl)]
2
3 pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
4     *t == *t
5     //~^ ERROR can't compare
6     //~| ERROR cannot call non-const
7 }
8
9 fn main() {}