|
10 | 10 |
|
11 | 11 | pub trait MyTrait {}
|
12 | 12 |
|
13 |
| -// @matches foo/struct.Alpha.html '//pre' "Alpha.*where.*A:.*MyTrait" |
| 13 | +// @has foo/struct.Alpha.html '//pre' "pub struct Alpha<A> where A: MyTrait" |
14 | 14 | pub struct Alpha<A> where A: MyTrait;
|
15 |
| -// @matches foo/trait.Bravo.html '//pre' "Bravo.*where.*B:.*MyTrait" |
| 15 | +// @has foo/trait.Bravo.html '//pre' "pub trait Bravo<B> where B: MyTrait" |
16 | 16 | pub trait Bravo<B> where B: MyTrait {}
|
17 |
| -// @matches foo/fn.charlie.html '//pre' "charlie.*where.*C:.*MyTrait" |
| 17 | +// @has foo/fn.charlie.html '//pre' "pub fn charlie<C>() where C: MyTrait" |
18 | 18 | pub fn charlie<C>() where C: MyTrait {}
|
19 | 19 |
|
20 | 20 | pub struct Delta<D>;
|
21 |
| -// @matches foo/struct.Delta.html '//*[@class="impl"]//code' "impl.*Delta.*where.*D:.*MyTrait" |
| 21 | +// @has foo/struct.Delta.html '//*[@class="impl"]//code' \ |
| 22 | +// "impl<D> Delta<D> where D: MyTrait" |
22 | 23 | impl<D> Delta<D> where D: MyTrait {
|
23 | 24 | pub fn delta() {}
|
24 | 25 | }
|
25 | 26 |
|
26 | 27 | pub struct Echo<E>;
|
27 |
| -// @matches foo/struct.Echo.html '//*[@class="impl"]//code' \ |
28 |
| -// "impl.*MyTrait.*for.*Echo.*where.*E:.*MyTrait" |
29 |
| -// @matches foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \ |
30 |
| -// "impl.*MyTrait.*for.*Echo.*where.*E:.*MyTrait" |
| 28 | +// @has foo/struct.Echo.html '//*[@class="impl"]//code' \ |
| 29 | +// "impl<E> MyTrait for Echo<E> where E: MyTrait" |
| 30 | +// @has foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \ |
| 31 | +// "impl<E> MyTrait for Echo<E> where E: MyTrait" |
31 | 32 | impl<E> MyTrait for Echo<E> where E: MyTrait {}
|
32 | 33 |
|
33 | 34 | pub enum Foxtrot<F> {}
|
34 |
| -// @matches foo/enum.Foxtrot.html '//*[@class="impl"]//code' \ |
35 |
| -// "impl.*MyTrait.*for.*Foxtrot.*where.*F:.*MyTrait" |
36 |
| -// @matches foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \ |
37 |
| -// "impl.*MyTrait.*for.*Foxtrot.*where.*F:.*MyTrait" |
| 35 | +// @has foo/enum.Foxtrot.html '//*[@class="impl"]//code' \ |
| 36 | +// "impl<F> MyTrait for Foxtrot<F> where F: MyTrait" |
| 37 | +// @has foo/trait.MyTrait.html '//*[@id="implementors-list"]//code' \ |
| 38 | +// "impl<F> MyTrait for Foxtrot<F> where F: MyTrait" |
38 | 39 | impl<F> MyTrait for Foxtrot<F> where F: MyTrait {}
|
0 commit comments