1 error[E0277]: can't compare `*const ()` with `*const ()` in const contexts
2 --> $DIR/issue-25826.rs:3:52
4 LL | const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
5 | ^ no implementation for `*const () < *const ()` and `*const () > *const ()`
7 = help: the trait `~const PartialOrd` is not implemented for `*const ()`
8 note: the trait `PartialOrd` is implemented for `*const ()`, but that implementation is not `const`
9 --> $DIR/issue-25826.rs:3:52
11 LL | const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
13 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
15 LL | fn main() where *const (): ~const PartialOrd {
16 | ++++++++++++++++++++++++++++++++++
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.