Closed
Description
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.)