blob: 8a1b20a334567a9e041da3aa42a2716df4b438c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error[E0277]: can't compare `fn()` with `_` in const contexts
--> $DIR/cmp_fn_pointers.rs:2:16
|
LL | unsafe { x == y }
| ^^ no implementation for `fn() == _`
|
= help: the trait `~const PartialEq<_>` is not implemented for `fn()`
note: the trait `PartialEq<_>` is implemented for `fn()`, but that implementation is not `const`
--> $DIR/cmp_fn_pointers.rs:2:16
|
LL | unsafe { x == y }
| ^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
|