rust/tests/rustdoc/inline_cross/auxiliary/async-fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
233 B
Rust
Raw Normal View History

#![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
}
}