File tree 2 files changed +19
-1
lines changed
src/test/rustdoc/inline_cross
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ // edition:2018
2
+
1
3
use std:: ops:: Deref ;
2
4
3
5
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) {}
11
13
12
14
pub fn func4 < T : Iterator < Item = impl Clone > > ( _x : T ) { }
13
15
16
+ pub async fn async_fn ( ) { }
17
+
14
18
pub struct Foo ;
15
19
16
20
impl Foo {
17
21
pub fn method < ' a > ( _x : impl Clone + Into < Vec < u8 > > + ' a ) { }
18
22
}
23
+
24
+ pub struct Bar ;
25
+
26
+ impl Bar {
27
+ pub async fn async_foo ( & self ) { }
28
+ }
Original file line number Diff line number Diff line change 1
1
// aux-build:impl_trait_aux.rs
2
+ // edition:2018
2
3
3
4
extern crate impl_trait_aux;
4
5
@@ -20,13 +21,20 @@ pub use impl_trait_aux::func2;
20
21
// @!has - '//pre[@class="rust fn"]' 'where'
21
22
pub use impl_trait_aux:: func3;
22
23
23
-
24
24
// @has impl_trait/fn.func4.html
25
25
// @has - '//pre[@class="rust fn"]' "func4<T>("
26
26
// @has - '//pre[@class="rust fn"]' "T: Iterator<Item = impl Clone>,"
27
27
pub use impl_trait_aux:: func4;
28
28
29
+ // @has impl_trait/fn.async_fn.html
30
+ // @has - '//pre[@class="rust fn"]' "pub async fn async_fn()"
31
+ pub use impl_trait_aux:: async_fn;
32
+
29
33
// @has impl_trait/struct.Foo.html
30
34
// @has - '//code[@id="method.v"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
31
35
// @!has - '//code[@id="method.v"]' 'where'
32
36
pub use impl_trait_aux:: Foo ;
37
+
38
+ // @has impl_trait/struct.Bar.html
39
+ // @has - '//*[@id="method.async_foo"]' "pub async fn async_foo("
40
+ pub use impl_trait_aux:: Bar ;
You can’t perform that action at this time.
0 commit comments