summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-20162.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-20162.stderr')
-rw-r--r--src/test/ui/issues/issue-20162.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-20162.stderr b/src/test/ui/issues/issue-20162.stderr
new file mode 100644
index 000000000..d70bf6e1d
--- /dev/null
+++ b/src/test/ui/issues/issue-20162.stderr
@@ -0,0 +1,19 @@
+error[E0277]: the trait bound `X: Ord` is not satisfied
+ --> $DIR/issue-20162.rs:5:7
+ |
+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
+ |
+LL | T: Ord,
+ | ^^^ required by this bound in `slice::<impl [T]>::sort`
+help: consider annotating `X` with `#[derive(Ord)]`
+ |
+LL | #[derive(Ord)]
+ |
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.