rust/tests/ui/async-await/in-trait/bad-region.rs
2024-02-16 20:02:50 +00:00

18 lines
285 B
Rust

//@ aux-build:bad-region.rs
//@ edition:2021
#![allow(async_fn_in_trait)]
extern crate bad_region as jewel;
use jewel::BleRadio;
pub struct Radio {}
impl BleRadio for Radio {
//~^ ERROR implicit elided lifetime not allowed here
async fn transmit(&mut self) {}
}
fn main() {}