about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/bad-region.rs
blob: 5d5d8783a324fcae3f0f66e64515c9724871e471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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() {}