|
1 | | -// aux-build:impl_trait_aux.rs |
| 1 | +// aux-crate:impl_trait=impl_trait.rs |
2 | 2 | // edition:2018 |
| 3 | +#![crate_name = "user"] |
3 | 4 |
|
4 | | -extern crate impl_trait_aux; |
5 | | - |
6 | | -// @has impl_trait/fn.func.html |
| 5 | +// @has user/fn.func.html |
7 | 6 | // @has - '//pre[@class="rust item-decl"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)" |
8 | 7 | // @!has - '//pre[@class="rust item-decl"]' 'where' |
9 | | -pub use impl_trait_aux::func; |
| 8 | +pub use impl_trait::func; |
10 | 9 |
|
11 | | -// @has impl_trait/fn.func2.html |
| 10 | +// @has user/fn.func2.html |
12 | 11 | // @has - '//pre[@class="rust item-decl"]' "func2<T>(" |
13 | 12 | // @has - '//pre[@class="rust item-decl"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>," |
14 | 13 | // @has - '//pre[@class="rust item-decl"]' "_y: impl Iterator<Item = u8> )" |
15 | 14 | // @!has - '//pre[@class="rust item-decl"]' 'where' |
16 | | -pub use impl_trait_aux::func2; |
| 15 | +pub use impl_trait::func2; |
17 | 16 |
|
18 | | -// @has impl_trait/fn.func3.html |
| 17 | +// @has user/fn.func3.html |
19 | 18 | // @has - '//pre[@class="rust item-decl"]' "func3(" |
20 | 19 | // @has - '//pre[@class="rust item-decl"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)" |
21 | 20 | // @!has - '//pre[@class="rust item-decl"]' 'where' |
22 | | -pub use impl_trait_aux::func3; |
| 21 | +pub use impl_trait::func3; |
23 | 22 |
|
24 | | -// @has impl_trait/fn.func4.html |
| 23 | +// @has user/fn.func4.html |
25 | 24 | // @has - '//pre[@class="rust item-decl"]' "func4<T>(" |
26 | 25 | // @has - '//pre[@class="rust item-decl"]' "T: Iterator<Item = impl Clone>," |
27 | | -pub use impl_trait_aux::func4; |
| 26 | +pub use impl_trait::func4; |
28 | 27 |
|
29 | | -// @has impl_trait/fn.func5.html |
| 28 | +// @has user/fn.func5.html |
30 | 29 | // @has - '//pre[@class="rust item-decl"]' "func5(" |
31 | 30 | // @has - '//pre[@class="rust item-decl"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other<T<'r> = ()>," |
32 | 31 | // @has - '//pre[@class="rust item-decl"]' "_a: impl for<'beta, 'alpha, '_gamma> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>" |
33 | 32 | // @!has - '//pre[@class="rust item-decl"]' 'where' |
34 | | -pub use impl_trait_aux::func5; |
| 33 | +pub use impl_trait::func5; |
35 | 34 |
|
36 | | -// @has impl_trait/struct.Foo.html |
| 35 | +// @has user/struct.Foo.html |
37 | 36 | // @has - '//*[@id="method.method"]//h4[@class="code-header"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)" |
38 | 37 | // @!has - '//*[@id="method.method"]//h4[@class="code-header"]' 'where' |
39 | | -pub use impl_trait_aux::Foo; |
| 38 | +pub use impl_trait::Foo; |
| 39 | + |
| 40 | +// @has user/fn.rpit_fn.html |
| 41 | +// @has - '//pre[@class="rust item-decl"]' "rpit_fn() -> impl Fn() -> bool" |
| 42 | +pub use impl_trait::rpit_fn; |
| 43 | + |
| 44 | +// @has user/fn.rpit_fn_mut.html |
| 45 | +// @has - '//pre[@class="rust item-decl"]' "rpit_fn_mut() -> impl for<'a> FnMut(&'a str) -> &'a str" |
| 46 | +pub use impl_trait::rpit_fn_mut; |
0 commit comments