1 2 3 4 5 6 7 8 9
use server_less::http; // #[http] applied to a struct (not an impl block) should produce a meaningful error. #[http] struct MyService { name: String, } fn main() {}