blob: 8cdb8887f4205e37d10c56a07bf3a188d33bc09b [file] [log] [blame]
//@ edition: 2021
#![deny(async_fn_in_trait)]
pub trait Foo {
async fn not_send();
//~^ ERROR use of `async fn` in public traits is discouraged
}
mod private {
pub trait FooUnreachable {
async fn not_send();
// No warning
}
}
pub(crate) trait FooCrate {
async fn not_send();
// No warning
}
fn main() {}