Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
28
tests/rustdoc-ui/error-in-impl-trait/realistic-async.rs
Normal file
28
tests/rustdoc-ui/error-in-impl-trait/realistic-async.rs
Normal 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()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue