]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/inline_cross/impl_trait.rs
Rollup merge of #82726 - ssomers:btree_node_rearange, r=Mark-Simulacrum
[rust.git] / src / test / rustdoc / inline_cross / impl_trait.rs
1 // aux-build:impl_trait_aux.rs
2 // edition:2018
3 // ignore-tidy-linelength
4
5 extern crate impl_trait_aux;
6
7 // @has impl_trait/fn.func.html
8 // @has - '//pre[@class="rust fn"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
9 // @!has - '//pre[@class="rust fn"]' 'where'
10 pub use impl_trait_aux::func;
11
12 // @has impl_trait/fn.func2.html
13 // @has - '//pre[@class="rust fn"]' "func2<T>("
14 // @has - '//pre[@class="rust fn"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,"
15 // @has - '//pre[@class="rust fn"]' "_y: impl Iterator<Item = u8>)"
16 // @!has - '//pre[@class="rust fn"]' 'where'
17 pub use impl_trait_aux::func2;
18
19 // @has impl_trait/fn.func3.html
20 // @has - '//pre[@class="rust fn"]' "func3("
21 // @has - '//pre[@class="rust fn"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)"
22 // @!has - '//pre[@class="rust fn"]' 'where'
23 pub use impl_trait_aux::func3;
24
25 // @has impl_trait/fn.func4.html
26 // @has - '//pre[@class="rust fn"]' "func4<T>("
27 // @has - '//pre[@class="rust fn"]' "T: Iterator<Item = impl Clone>,"
28 pub use impl_trait_aux::func4;
29
30 // @has impl_trait/fn.async_fn.html
31 // @has - '//pre[@class="rust fn"]' "pub async fn async_fn()"
32 pub use impl_trait_aux::async_fn;
33
34 // @has impl_trait/struct.Foo.html
35 // @has - '//*[@id="method.method"]//code' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
36 // @!has - '//*[@id="method.method"]//code' 'where'
37 pub use impl_trait_aux::Foo;
38
39 // @has impl_trait/struct.Bar.html
40 // @has - '//*[@id="method.async_foo"]' "pub async fn async_foo("
41 pub use impl_trait_aux::Bar;