add rustdoc test for async fn reexport
This commit is contained in:
parent
a813cc1bf1
commit
726fe3b255
2 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
// edition:2018
|
||||
|
||||
use std::ops::Deref;
|
||||
|
||||
pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a) {}
|
||||
|
@ -11,8 +13,16 @@ pub fn func3(_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone) {}
|
|||
|
||||
pub fn func4<T: Iterator<Item = impl Clone>>(_x: T) {}
|
||||
|
||||
pub async fn async_fn() {}
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
impl Foo {
|
||||
pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a) {}
|
||||
}
|
||||
|
||||
pub struct Bar;
|
||||
|
||||
impl Bar {
|
||||
pub async fn async_foo(&self) {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue