]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2632-const-trait-impl/call-generic-method-nonconst-bound.rs
Update tests after feature stabilization
[rust.git] / src / test / ui / rfc-2632-const-trait-impl / call-generic-method-nonconst-bound.rs
1 // check-pass
2
3 struct S;
4
5 impl PartialEq for S {
6     fn eq(&self, _: &S) -> bool {
7         true
8     }
9 }
10
11 const fn equals_self<T: PartialEq>(t: &T) -> bool {
12     true
13 }
14
15 pub const EQ: bool = equals_self(&S);
16
17 fn main() {}