summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-25826.stderr
blob: 905c5ee6eb4a0530ed1fe2858466041d0b83b869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: can't compare `*const ()` with `*const ()` in const contexts
  --> $DIR/issue-25826.rs:3:52
   |
LL |     const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
   |                                                    ^ no implementation for `*const () < *const ()` and `*const () > *const ()`
   |
   = help: the trait `~const PartialOrd` is not implemented for `*const ()`
note: the trait `PartialOrd` is implemented for `*const ()`, but that implementation is not `const`
  --> $DIR/issue-25826.rs:3:52
   |
LL |     const A: bool = unsafe { id::<u8> as *const () < id::<u16> as *const () };
   |                                                    ^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.