mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-27 08:05:21 +00:00
19 lines
233 B
Rust
19 lines
233 B
Rust
#![feature(async_fn_in_trait)]
|
|
// edition: 2021
|
|
|
|
pub async fn load() -> i32 {
|
|
0
|
|
}
|
|
|
|
pub trait Load {
|
|
async fn run(&self) -> i32;
|
|
}
|
|
|
|
pub struct Loader;
|
|
|
|
impl Load for Loader {
|
|
async fn run(&self) -> i32 {
|
|
1
|
|
}
|
|
}
|