2022-07-25 03:17:00 -05:00
|
|
|
error[E0277]: can't compare `fn()` with `_` in const contexts
|
|
|
|
--> $DIR/cmp_fn_pointers.rs:2:16
|
2020-09-29 20:32:38 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { x == y }
|
2022-07-25 03:17:00 -05:00
|
|
|
| ^^ no implementation for `fn() == _`
|
2020-09-29 20:32:38 -05:00
|
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
= 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 }
|
|
|
|
| ^^
|
2020-09-29 20:32:38 -05:00
|
|
|
|
2022-02-09 12:53:40 -06:00
|
|
|
error: aborting due to previous error
|
2018-10-05 03:17:16 -05:00
|
|
|
|
2022-07-25 03:17:00 -05:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|