mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-05 22:48:02 +00:00
18 lines
285 B
Rust
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() {}
|