We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fcda1 commit 70697d8Copy full SHA for 70697d8
src/test/rustdoc-ui/error-in-impl-trait/realistic-async.rs
@@ -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
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