You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
When copy-pasting the code to rust 1.68 and running
cargo check
, the following warning is produced.Would a link to the tracking issue in the explanation be sensible?
The text was updated successfully, but these errors were encountered: