rust/tests/ui/issues/issue-20162.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
460 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `X: Ord` is not satisfied
--> $DIR/issue-20162.rs:5:7
2018-07-15 16:11:54 -05:00
|
LL | b.sort();
| ^^^^ the trait `Ord` is not implemented for `X`
|
note: required by a bound in `slice::<impl [T]>::sort`
--> $SRC_DIR/alloc/src/slice.rs:LL:COL
2022-03-31 09:58:45 -05:00
help: consider annotating `X` with `#[derive(Ord)]`
|
LL | #[derive(Ord)]
|
2018-07-15 16:11:54 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.