mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-23 15:48:06 +01:00
c7b8813c47
The things are also covered by the doc tests but this also gives us assertions on the errors produced, which is the whole point of this crate :)
5 lines
104 B
Text
5 lines
104 B
Text
error: handlers must be async functions
|
|
--> tests/fail/not_async.rs:4:1
|
|
|
|
|
4 | fn handler() {}
|
|
| ^^
|