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