summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/inline_cross/auxiliary/async-fn.rs
blob: 767564ed145f3f6d68321a7444dc4f9309a2c808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![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
    }
}