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

Completer implement for reference prevents any other implement for <T:SomeTrait> #425

Closed
suikabreaker opened this issue Aug 5, 2020 · 0 comments · Fixed by #813
Closed

Comments

@suikabreaker
Copy link

suikabreaker commented Aug 5, 2020

impl<'c, C> rustyline::completion::Completer for &'c C

This stops me from implement completer like this:

error[E0119]: conflicting implementations of trait `rustyline::completion::Completer` for type `&_`:
  --> src\main.rs:81:1
   |
81 | impl<T: CandidateList> Completer for T {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `rustyline`:
           - impl<'c, C> rustyline::completion::Completer for &'c C
             where C: rustyline::completion::Completer, C: ?Sized;
   = note: downstream crates may implement trait `CandidateList` for type `&_`

Actually it prevents any kind of implementation like this.

@suikabreaker suikabreaker changed the title Completer implement 佛如 Completer implement for reference prevent any other implement for <T:SomeTrait> Aug 5, 2020
@suikabreaker suikabreaker changed the title Completer implement for reference prevent any other implement for <T:SomeTrait> Completer implement for reference prevents any other implement for <T:SomeTrait> Aug 6, 2020
@gwenn gwenn mentioned this issue Oct 7, 2024
@gwenn gwenn closed this as completed in #813 Oct 7, 2024
@gwenn gwenn closed this as completed in b647366 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants