blob: 8e5dbd08eb98bb9302596514849b95f78822cfe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// check-pass
// edition:2021
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next
#![feature(async_fn_in_trait)]
#![allow(incomplete_features)]
pub trait SpiDevice {
async fn transaction<F, R>(&mut self);
}
impl SpiDevice for () {
async fn transaction<F, R>(&mut self) {}
}
fn main() {}
|