]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/inline_cross/auxiliary/async-fn.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / rustdoc / inline_cross / auxiliary / async-fn.rs
1 #![feature(async_fn_in_trait)]
2 // edition: 2021
3
4 pub async fn load() -> i32 {
5 0
6 }
7
8 pub trait Load {
9 async fn run(&self) -> i32;
10 }
11
12 pub struct Loader;
13
14 impl Load for Loader {
15 async fn run(&self) -> i32 {
16 1
17 }
18 }