#![allow(unused_imports)]
use dropshot::HttpResponseUpdatedNoContent;
use dropshot::RequestContext;
#[dropshot::api_description]
trait MyApi {
type Context;
#[endpoint { method = GET, path = "/test" }]
async fn bad_error_type(
&self,
rqctx: RequestContext<Self::Context>,
) -> Result<HttpResponseUpdatedNoContent, String>;
}
enum MyImpl {}
impl MyApi for MyImpl {
type Context = ();
async fn bad_error_type(
&self,
_rqctx: RequestContext<Self::Context>,
) -> Result<HttpResponseUpdatedNoContent, String> {
todo!()
}
}
fn main() {
my_api_mod::api_description::<MyImpl>();
my_api_mod::stub_api_description();
}