Compiling axum-tests v0.1.0 (/home/troels/git-clones/personal1/rust-tests/axum-tests) error[E0277]: the trait bound `fn(Query>, HeaderMap) -> impl futures::Future {root_handler}: axum::handler::Handler<_, _>` is not satisfied --> src/main.rs:56:34 | 56 | .route("/rust-test", get(root_handler)) | --- ^^^^^^^^^^^^ the trait `axum::handler::Handler<_, _>` is not implemented for `fn(Query>, HeaderMap) -> impl futures::Future {root_handler}` | | | required by a bound introduced by this call | note: required by a bound in `axum::routing::get` --> /home/troels/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-0.5.1/src/routing/method_routing.rs:394:1 | 394 | top_level_handler_fn!(get, GET); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `axum::routing::get` = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `fn(Query>, HeaderMap) -> impl futures::Future {root_handler}: axum::handler::Handler<_, _>` is not satisfied --> src/main.rs:57:35 | 57 | .route("/rust-test", post(root_handler)) | ---- ^^^^^^^^^^^^ the trait `axum::handler::Handler<_, _>` is not implemented for `fn(Query>, HeaderMap) -> impl futures::Future {root_handler}` | | | required by a bound introduced by this call | note: required by a bound in `post` --> /home/troels/.cargo/registry/src/github.com-1ecc6299db9ec823/axum-0.5.1/src/routing/method_routing.rs:398:1 | 398 | top_level_handler_fn!(post, POST); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `post` = note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `RootTemplate: axum::response::IntoResponse` is not satisfied --> src/main.rs:90:6 | 90 | ) -> RootTemplate { | ^^^^^^^^^^^^ the trait `axum::response::IntoResponse` is not implemented for `RootTemplate` | note: required by a bound in `__axum_macros_check_root_handler_into_response::{closure#0}::check` --> src/main.rs:90:6 | 90 | ) -> RootTemplate { | ^^^^^^^^^^^^ required by this bound in `__axum_macros_check_root_handler_into_response::{closure#0}::check` For more information about this error, try `rustc --explain E0277`. error: could not compile `axum-tests` due to 3 previous errors