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

Unable to autocomplete based on trait bounds #706

Closed
jon-zu opened this issue Apr 5, 2017 · 1 comment
Closed

Unable to autocomplete based on trait bounds #706

jon-zu opened this issue Apr 5, 2017 · 1 comment

Comments

@jon-zu
Copy link

jon-zu commented Apr 5, 2017

trait X {
    fn do_x(&self);
}

struct A ();
struct B<T> {
   x: T
}

impl X for A {
    fn do_x(&self) {
        println!("A");
    }
}

impl<T> B<T> where T: X {
     fn do_b(&self) {
         self.x.//No autocomplete
    } 
}

That's what I get(:

racer complete 18 17 main.rs
PREFIX 204,204,
END

I use racer 2.0.6. May be a duplicate but I was unable to find something similar.

@TedDriggs TedDriggs changed the title Unable to autocomplete for trait bounds Unable to autocomplete based on trait bounds Jun 12, 2017
@kngwyu
Copy link
Collaborator

kngwyu commented Aug 30, 2018

Closed in favour of #939

@kngwyu kngwyu closed this as completed Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants