mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-27 01:31:23 +01:00
12 lines
448 B
Text
12 lines
448 B
Text
|
error: `Json<_>` consumes the request body and thus must be the last argument to the handler function
|
||
|
--> tests/debug_handler/fail/wrong_order.rs:5:17
|
||
|
|
|
||
|
5 | async fn one(_: Json<()>, _: Uri) {}
|
||
|
| ^^^^^^^^
|
||
|
|
||
|
error: `String` consumes the request body and thus must be the last argument to the handler function
|
||
|
--> tests/debug_handler/fail/wrong_order.rs:8:17
|
||
|
|
|
||
|
8 | async fn two(_: String, _: Uri) {}
|
||
|
| ^^^^^^
|