Skip to content

Commit cb20758

Browse files
Add test
1 parent c1aa9bf commit cb20758

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
// edition:2021
3+
4+
#![feature(async_fn_in_trait)]
5+
#![allow(incomplete_features)]
6+
7+
pub trait SpiDevice {
8+
async fn transaction<F, R>(&mut self);
9+
}
10+
11+
impl SpiDevice for () {
12+
async fn transaction<F, R>(&mut self) {}
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)