2020-09-16 23:37:41 +02:00
|
|
|
error: The #[route(..)] macro requires at least one `method` attribute
|
2021-12-29 09:59:15 +01:00
|
|
|
--> tests/trybuild/route-missing-method-fail.rs:3:1
|
2020-09-16 23:37:41 +02:00
|
|
|
|
|
|
|
|
3 | #[route("/")]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-12-29 09:59:15 +01:00
|
|
|
= note: this error originates in the attribute macro `route` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-09-16 23:37:41 +02:00
|
|
|
|
2021-10-14 19:06:31 +02:00
|
|
|
error[E0277]: the trait bound `fn() -> impl std::future::Future {index}: HttpServiceFactory` is not satisfied
|
2021-12-29 09:59:15 +01:00
|
|
|
--> tests/trybuild/route-missing-method-fail.rs:12:55
|
2020-09-16 23:37:41 +02:00
|
|
|
|
|
2021-04-02 09:26:59 +02:00
|
|
|
12 | let srv = actix_test::start(|| App::new().service(index));
|
2021-10-14 19:06:31 +02:00
|
|
|
| ^^^^^ the trait `HttpServiceFactory` is not implemented for `fn() -> impl std::future::Future {index}`
|