1
Fork 0

Add more realistic example of async error

This commit is contained in:
Joshua Nelson 2020-08-03 21:21:33 -04:00
parent 31fcda170a
commit 70697d8be8

View file

@ -0,0 +1,28 @@
// edition:2018
// check-pass
mod windows {
pub trait WinFoo {
fn foo(&self) {}
}
impl WinFoo for () {}
}
#[cfg(any(windows, doc))]
use windows::*;
mod unix {
pub trait UnixFoo {
fn foo(&self) {}
}
impl UnixFoo for () {}
}
#[cfg(any(unix, doc))]
use unix::*;
async fn bar() {
().foo()
}