fork/rust

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

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

master
1.0 KiB28 linesraw
1warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/foreach-partial-eq.rs:1:12
3   |
4LL | #![feature(non_lifetime_binders)]
5   |            ^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8   = note: `#[warn(incomplete_features)]` on by default
9
10error[E0277]: can't compare `T` with `T`
11  --> $DIR/foreach-partial-eq.rs:10:5
12   |
13LL |     auto_trait();
14   |     ^^^^^^^^^^ no implementation for `T < T` and `T > T`
15   |
16   = help: the trait `PartialOrd` is not implemented for `T`
17note: required by a bound in `auto_trait`
18  --> $DIR/foreach-partial-eq.rs:6:27
19   |
20LL | fn auto_trait()
21   |    ---------- required by a bound in this function
22LL | where
23LL |     for<T> T: PartialEq + PartialOrd,
24   |                           ^^^^^^^^^^ required by this bound in `auto_trait`
25
26error: aborting due to previous error; 1 warning emitted
27
28For more information about this error, try `rustc --explain E0277`.