Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question 5 warning, link to tracking issue? #70

Closed
arctic-penguin opened this issue Mar 21, 2023 · 0 comments · Fixed by #75
Closed

question 5 warning, link to tracking issue? #70

arctic-penguin opened this issue Mar 21, 2023 · 0 comments · Fixed by #75

Comments

@arctic-penguin
Copy link

arctic-penguin commented Mar 21, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant