fork/rust

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

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

master
1.1 KiB26 linesraw
1warning: conflicting implementations of trait `SadBee` for type `for<'a> fn(&'a ())`
2  --> $DIR/invariant.rs:14:1
3   |
4LL | impl SadBee for for<'a> fn(&'a ()) {
5   | ---------------------------------- first implementation here
6...
7LL | impl SadBee for fn(&'static ()) {
8   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a> fn(&'a ())`
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 #56105 <https://github.com/rust-lang/rust/issues/56105>
12   = note: this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details
13   = note: `#[warn(coherence_leak_check)]` on by default
14
15error[E0308]: mismatched types
16  --> $DIR/invariant.rs:27:5
17   |
18LL |     v
19   |     ^ one type is more general than the other
20   |
21   = note: expected reference `&Foo<fn(&())>`
22              found reference `&Foo<for<'a> fn(&'a ())>`
23
24error: aborting due to previous error; 1 warning emitted
25
26For more information about this error, try `rustc --explain E0308`.