bless tests, remove nonexistent E0395
This commit is contained in:
@@ -1,28 +1,22 @@
|
||||
error[E0277]: can't compare `T` with `T` in const contexts
|
||||
--> $DIR/call-generic-method-fail.rs:4:5
|
||||
error[E0277]: can't compare `T` with `_` in const contexts
|
||||
--> $DIR/call-generic-method-fail.rs:4:8
|
||||
|
|
||||
LL | *t == *t
|
||||
| ^^^^^^^^ no implementation for `T == T`
|
||||
| ^^ no implementation for `T == _`
|
||||
|
|
||||
note: the trait `PartialEq` is implemented for `T`, but that implementation is not `const`
|
||||
--> $DIR/call-generic-method-fail.rs:4:5
|
||||
note: the trait `PartialEq<_>` is implemented for `T`, but that implementation is not `const`
|
||||
--> $DIR/call-generic-method-fail.rs:4:8
|
||||
|
|
||||
LL | *t == *t
|
||||
| ^^^^^^^^
|
||||
| ^^
|
||||
= help: the following other types implement trait `PartialEq<Rhs>`:
|
||||
<&A as PartialEq<&B>>
|
||||
<&A as PartialEq<&mut B>>
|
||||
<&mut A as PartialEq<&B>>
|
||||
<&mut A as PartialEq<&mut B>>
|
||||
<*const T as PartialEq>
|
||||
<*mut T as PartialEq>
|
||||
|
||||
error[E0015]: cannot call non-const operator in constant functions
|
||||
--> $DIR/call-generic-method-fail.rs:4:5
|
||||
|
|
||||
LL | *t == *t
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
|
||||
help: consider further restricting this bound
|
||||
|
|
||||
LL | pub const fn equals_self<T: PartialEq + ~const std::cmp::PartialEq>(t: &T) -> bool {
|
||||
| ++++++++++++++++++++++++++++
|
||||
error: aborting due to previous error
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0015, E0277.
|
||||
For more information about an error, try `rustc --explain E0015`.
|
||||
For more information about this error, try `rustc --explain E0277`.
|
||||
|
||||
Reference in New Issue
Block a user