Skip to content

Commit 70697d8

Browse files
committed
Add more realistic example of async error
1 parent 31fcda1 commit 70697d8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// edition:2018
2+
// check-pass
3+
4+
mod windows {
5+
pub trait WinFoo {
6+
fn foo(&self) {}
7+
}
8+
9+
impl WinFoo for () {}
10+
}
11+
12+
#[cfg(any(windows, doc))]
13+
use windows::*;
14+
15+
mod unix {
16+
pub trait UnixFoo {
17+
fn foo(&self) {}
18+
}
19+
20+
impl UnixFoo for () {}
21+
}
22+
23+
#[cfg(any(unix, doc))]
24+
use unix::*;
25+
26+
async fn bar() {
27+
().foo()
28+
}

0 commit comments

Comments
 (0)