mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-13 10:20:44 +01:00
f1f004a057
* 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
13 lines
406 B
Text
13 lines
406 B
Text
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
|