mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
15 lines
362 B
Rust
15 lines
362 B
Rust
|
// edition:2021
|
||
|
|
||
|
#![feature(async_fn_in_trait)]
|
||
|
#![allow(incomplete_features)]
|
||
|
|
||
|
pub trait Foo {
|
||
|
// @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn bar() -> i32"
|
||
|
async fn bar() -> i32;
|
||
|
|
||
|
// @has async_trait_sig/trait.Foo.html '//h4[@class="code-header"]' "async fn baz() -> i32"
|
||
|
async fn baz() -> i32 {
|
||
|
1
|
||
|
}
|
||
|
}
|