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

Not handle Box<Trait + Send> #900

Closed
Dushistov opened this issue Jul 20, 2018 · 1 comment
Closed

Not handle Box<Trait + Send> #900

Dushistov opened this issue Jul 20, 2018 · 1 comment

Comments

@Dushistov
Copy link

Dushistov commented Jul 20, 2018

Consider such code:

pub trait Foo {
    fn foo(&self);
}

fn get_foo() -> Box<Foo + Send> {
    unimplemented!();
}

fn main() {
    let mut t = get_foo();
    t.foo();//X
}

if I place cursor at foo at line X, and execute racer-find-definition,
it returns "No definition found", also no completion if I type t.

But if replace Box<Foo + Send> with Box<Foo> all works fine.

So looks like racer doesn't like Box<Trait + Send>?

I use racer 2.0.14.

@kngwyu
Copy link
Collaborator

kngwyu commented Jul 20, 2018

Thanks for reporting, it sounds weird...

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

2 participants