summaryrefslogtreecommitdiffstats
path: root/tests/ui/coherence/warn-when-cycle-is-error-in-coherence.stderr
blob: 4535b6f681152dd02f7ae9f344d414056fa6b547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error: implementations of `PartialEq<Interval<_>>` for `Interval<_>` will conflict in the future
  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:13:1
   |
LL |   #[derive(PartialEq, Default)]
   |            --------- the second impl is here
...
LL | / impl<T, Q> PartialEq<Q> for Interval<T>
LL | |
LL | |
LL | | where
LL | |     T: Borrow<Q>,
LL | |     Q: ?Sized + PartialOrd,
   | |___________________________^ the first impl is here
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
   = note: impls that are not considered to overlap may be considered to overlap in the future
   = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
note: the lint level is defined here
  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
   |
LL | #![deny(coinductive_overlap_in_coherence)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error

Future incompatibility report: Future breakage diagnostic:
error: implementations of `PartialEq<Interval<_>>` for `Interval<_>` will conflict in the future
  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:13:1
   |
LL |   #[derive(PartialEq, Default)]
   |            --------- the second impl is here
...
LL | / impl<T, Q> PartialEq<Q> for Interval<T>
LL | |
LL | |
LL | | where
LL | |     T: Borrow<Q>,
LL | |     Q: ?Sized + PartialOrd,
   | |___________________________^ the first impl is here
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #114040 <https://github.com/rust-lang/rust/issues/114040>
   = note: impls that are not considered to overlap may be considered to overlap in the future
   = note: `Interval<_>: PartialOrd` may be considered to hold in future releases, causing the impls to overlap
note: the lint level is defined here
  --> $DIR/warn-when-cycle-is-error-in-coherence.rs:1:9
   |
LL | #![deny(coinductive_overlap_in_coherence)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^