]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20162.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / issues / issue-20162.stderr
1 error[E0277]: the trait bound `X: Ord` is not satisfied
2   --> $DIR/issue-20162.rs:5:7
3    |
4 LL |     b.sort();
5    |       ^^^^ the trait `Ord` is not implemented for `X`
6    |
7 note: required by a bound in `slice::<impl [T]>::sort`
8   --> $SRC_DIR/alloc/src/slice.rs:LL:COL
9    |
10 LL |         T: Ord,
11    |            ^^^ required by this bound in `slice::<impl [T]>::sort`
12 help: consider annotating `X` with `#[derive(Ord)]`
13    |
14 LL | #[derive(Ord)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.