diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index a1d8c715..4619b2df 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -306,6 +306,9 @@ where .remove::>() .map(|SuperFallback(path_router)| path_router.into_inner()); + // simulate hitting `unreachable!()` below + unreachable!(); + if let Some(mut super_fallback) = super_fallback { return super_fallback .call_with_state(req, state)