question 5 warning, link to tracking issue?
arctic-penguin opened this issue · 0 comments
arctic-penguin commented
When copy-pasting the code to rust 1.68 and running cargo check
, the following warning is produced.
warning: conflicting implementations of trait `Trait` for type `fn(&_)`
--> src/main.rs:11:1
|
5 | impl<T> Trait for fn(T) {
| ----------------------- first implementation here
...
11 | impl<T> Trait for fn(&T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `fn(&_)`
|
= 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 #56105 <https://github.com/rust-lang/rust/issues/56105>
= note: this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details
= note: `#[warn(coherence_leak_check)]` on by default
Would a link to the tracking issue in the explanation be sensible?