rust/tests/ui/async-await/in-trait/warn.rs

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

12 lines
146 B
Rust
Raw Normal View History

2023-09-26 15:20:21 -05:00
// edition: 2021
#![feature(async_fn_in_trait)]
#![deny(async_fn_in_trait)]
trait Foo {
async fn not_send();
//~^ ERROR
}
fn main() {}