mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-25 00:28:07 +01:00
12 lines
601 B
Text
12 lines
601 B
Text
|
error: Can't have two extractors that consume the request body. `Json<_>` and `String` both do that.
|
||
|
--> tests/debug_handler/fail/multiple_request_consumers.rs:5:14
|
||
|
|
|
||
|
5 | async fn one(_: Json<()>, _: String, _: Uri) {}
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: Can't have more than one extractor that consume the request body. `Json<_>`, `Bytes`, and `String` all do that.
|
||
|
--> tests/debug_handler/fail/multiple_request_consumers.rs:8:14
|
||
|
|
|
||
|
8 | async fn two(_: Json<()>, _: Method, _: Bytes, _: Uri, _: String) {}
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|