1 error[E0277]: the trait bound `X: Ord` is not satisfied
2 --> $DIR/issue-20162.rs:5:7
5 | ^^^^ the trait `Ord` is not implemented for `X`
7 note: required by a bound in `slice::<impl [T]>::sort`
8 --> $SRC_DIR/alloc/src/slice.rs:LL:COL
11 | ^^^ required by this bound in `slice::<impl [T]>::sort`
12 help: consider annotating `X` with `#[derive(Ord)]`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.