2022-09-27 00:54:02 +00:00
|
|
|
// check-pass
|
|
|
|
// edition:2021
|
|
|
|
|
|
|
|
#![feature(async_fn_in_trait)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
pub trait SpiDevice {
|
2023-09-26 20:20:25 +00:00
|
|
|
#[allow(async_fn_in_trait)]
|
2022-09-27 00:54:02 +00:00
|
|
|
async fn transaction<F, R>(&mut self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SpiDevice for () {
|
|
|
|
async fn transaction<F, R>(&mut self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|