mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-18 00:00:15 +02:00
* Make `axum-debug` handle more cases * Only just trybuild tests on stable * revert changes to hello-world example * Remove a bit of duplication * return error on generics * address review feedback * Support associated functions with receiver or returns `Self` * fix indentation
14 lines
406 B
Plaintext
14 lines
406 B
Plaintext
error: `#[axum_debug::debug_handler]` doesn't support generic functions
|
|
--> tests/fail/generics.rs:4:17
|
|
|
|
|
4 | async fn handler<T>() {}
|
|
| ^^^
|
|
|
|
error[E0282]: type annotations needed
|
|
--> tests/fail/generics.rs:4:10
|
|
|
|
|
4 | async fn handler<T>() {}
|
|
| ----- ^^^^^^^ cannot infer type for type parameter `T` declared on the function `handler`
|
|
| |
|
|
| consider giving `future` a type
|