mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
Add trybuild tests for axum-debug (#501)
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 :)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
error: handlers must be async functions
|
||||
--> tests/fail/not_async.rs:4:1
|
||||
|
|
||||
4 | fn handler() {}
|
||||
| ^^
|
||||
Reference in New Issue
Block a user