Skip to content

find-definition requires extern crate in 2018 edition #916

Closed
@tarka

Description

@tarka

extern crate is no longer required in the 2018 edition preview. However, trying find-definition 3 25 on the following code fails. However if add extern crate actix_web; it works.

#![feature(rust_2018_preview)]

use actix_web::{server, App, HttpRequest};

fn index(_req: &HttpRequest) -> &'static str {
    "Hello world!"
}

fn main() {
   server::new(|| App::new().resource("/", |r| r.f(index)))
        .bind("127.0.0.1:8088")
        .unwrap()
        .run();
}

(This is built from master 22033f9, using emacs-racer, but confirmed on the commandline.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions