fork/rust

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

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

master
1.0 KiB21 linesraw
1error: implementations of `PartialEq<Interval<_>>` for `Interval<_>` will conflict in the future
2  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:13:1
3   |
4LL | #[derive(PartialEq, Default)]
5   |          --------- the second impl is here
6...
7LL | impl<T, Q> PartialEq<Q> for Interval<T>
8   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the first impl is here
9   |
10   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11   = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
12   = note: impls that are not considered to overlap may be considered to overlap in the future
13   = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
14note: the lint level is defined here
15  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
16   |
17LL | #![deny(coinductive_overlap_in_coherence)]
18   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
20error: aborting due to previous error
21