File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
src/test/rustdoc/inline_cross Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ // edition:2018
2+
13use std:: ops:: Deref ;
24
35pub 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) {}
1113
1214pub fn func4 < T : Iterator < Item = impl Clone > > ( _x : T ) { }
1315
16+ pub async fn async_fn ( ) { }
17+
1418pub struct Foo ;
1519
1620impl Foo {
1721 pub fn method < ' a > ( _x : impl Clone + Into < Vec < u8 > > + ' a ) { }
1822}
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 11// aux-build:impl_trait_aux.rs
2+ // edition:2018
23
34extern crate impl_trait_aux;
45
@@ -20,13 +21,20 @@ pub use impl_trait_aux::func2;
2021// @!has - '//pre[@class="rust fn"]' 'where'
2122pub use impl_trait_aux:: func3;
2223
23-
2424// @has impl_trait/fn.func4.html
2525// @has - '//pre[@class="rust fn"]' "func4<T>("
2626// @has - '//pre[@class="rust fn"]' "T: Iterator<Item = impl Clone>,"
2727pub use impl_trait_aux:: func4;
2828
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+
2933// @has impl_trait/struct.Foo.html
3034// @has - '//code[@id="method.v"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)"
3135// @!has - '//code[@id="method.v"]' 'where'
3236pub 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