fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
485 B17 linesraw
1error[E0277]: the trait bound `X: Ord` is not satisfied
2  --> $DIR/issue-20162.rs:5:7
3   |
4LL |     b.sort();
5   |       ^^^^ the trait `Ord` is not implemented for `X`
6   |
7note: required by a bound in `slice::<impl [T]>::sort`
8  --> $SRC_DIR/alloc/src/slice.rs:LL:COL
9help: consider annotating `X` with `#[derive(Ord)]`
10   |
11LL + #[derive(Ord)]
12LL | struct X { x: i32 }
13   |
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.