Files
tarpc/tarpc/tests/compile_fail/tarpc_server_missing_async.rs

16 lines
244 B
Rust

#[tarpc::service]
trait World {
async fn hello(name: String) -> String;
}
struct HelloServer;
#[tarpc::server]
impl World for HelloServer {
fn hello(name: String) -> String {
format!("Hello, {}!", name)
}
}
fn main() {}