fork/rust

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

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

master
1.6 KiB31 linesraw
1error: impl method assumes more implied bounds than the corresponding trait method
2  --> $DIR/impl-implied-bounds-compatibility.rs:14:35
3   |
4LL |     fn listeners<'b>(&'b self) -> &'a MessageListeners<'b> {
5   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this type to make the impl signature compatible: `&'b MessageListeners<'b>`
6   |
7   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8   = note: for more information, see issue #105572 <https://github.com/rust-lang/rust/issues/105572>
9note: the lint level is defined here
10  --> $DIR/impl-implied-bounds-compatibility.rs:1:9
11   |
12LL | #![deny(implied_bounds_entailment)]
13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
14
15error: aborting due to previous error
16
17Future incompatibility report: Future breakage diagnostic:
18error: impl method assumes more implied bounds than the corresponding trait method
19  --> $DIR/impl-implied-bounds-compatibility.rs:14:35
20   |
21LL |     fn listeners<'b>(&'b self) -> &'a MessageListeners<'b> {
22   |                                   ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace this type to make the impl signature compatible: `&'b MessageListeners<'b>`
23   |
24   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
25   = note: for more information, see issue #105572 <https://github.com/rust-lang/rust/issues/105572>
26note: the lint level is defined here
27  --> $DIR/impl-implied-bounds-compatibility.rs:1:9
28   |
29LL | #![deny(implied_bounds_entailment)]
30   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
31