rust/tests/ui/async-await/in-trait/bad-region.rs

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

18 lines
283 B
Rust
Raw Normal View History

// 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() {}