Improve debug_handler on tuple response types (#2201)

Co-authored-by: David Pedersen <[email protected]>
Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
Sleep_AllDay
2023-12-30 21:48:35 +00:00
committed by GitHub
co-authored by David Pedersen Jonas Platte
parent 85573e0573
commit d2cea5cdbd
13 changed files with 357 additions and 17 deletions
@@ -0,0 +1,12 @@
error: Cannot return tuples with more than 17 elements
--> tests/debug_handler/fail/output_tuple_too_many.rs:5:3
|
5 | ) -> (
| ___^
6 | | axum::http::StatusCode,
7 | | AppendHeaders<[(axum::http::HeaderName, &'static str); 1]>,
8 | | AppendHeaders<[(axum::http::HeaderName, &'static str); 1]>,
... |
24 | | axum::http::StatusCode,
25 | | ) {
| |_^