Skip to content

error: explicit lifetime bound required  #46

@edubkendo

Description

@edubkendo

Can't get it to build currently using rust nightly. Apparently there was a new type inference scheme merged about 8 hours ago, lol. I tried taking a look but I really don't know much rust yet, I've been distracted lately with Elixir. Was trying to figure out why atom-racer wasn't working for user's having issues and wanted to update to the latest racer to see what the problem was. Tried compiling with rust-0.11 but that didn't work out either. Thanks in advance.

rustc -O -o bin/racer src/main.rs
src/racer/nameres.rs:575:15: 575:26 error: explicit lifetime bound required
src/racer/nameres.rs:575 iter: Box<Iterator>
^~~~~~~~~~~
src/racer/util.rs:162:73: 162:84 error: explicit lifetime bound required
src/racer/util.rs:162 pub fn lazyit<T,I:Iterator>(p: proc() -> I) -> iter::FlatMap<'static,proc() -> I,option::Item<proc() -> I>,I> {
^~~~~~~~~~~
src/racer/util.rs:162:98: 162:109 error: explicit lifetime bound required
src/racer/util.rs:162 pub fn lazyit<T,I:Iterator>(p: proc() -> I) -> iter::FlatMap<'static,proc() -> I,option::Item<proc() -> I>,I> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions