1
Fork 0

Try fixing some tests

This commit is contained in:
Deadbeef 2021-08-25 14:30:09 +00:00
parent 1164c946b0
commit ff24ac4f2b
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
27 changed files with 52 additions and 255 deletions

View file

@ -1,9 +1,7 @@
// check-pass
#![feature(const_trait_impl)]
#![feature(const_trait_bound_opt_out)]
#![feature(const_fn_trait_bound)]
#![allow(incomplete_features)]
struct S;
@ -16,9 +14,9 @@ impl const PartialEq for S {
}
}
// This duplicate bound should not result in ambiguities. It should be equivalent to a single const
// This duplicate bound should not result in ambiguities. It should be equivalent to a single ~const
// bound.
const fn equals_self<T: PartialEq + ?const PartialEq>(t: &T) -> bool {
const fn equals_self<T: PartialEq + ~const PartialEq>(t: &T) -> bool {
*t == *t
}