1 2 3 4 5 6 7 8 9 10 11
use server_less::http; // #[http] applied to a generic impl block should produce a meaningful error. #[http] impl<T> Foo<T> { fn get_item(&self) -> String { String::new() } } fn main() {}