@@ -19,10 +19,10 @@ pub use extern_crate::WTrait;
19
19
20
20
// @has foo/trait.Trait.html '//pre[@class="rust trait"]' \
21
21
// 'pub trait Trait<const N: usize>'
22
- // @has - '//*[@id="impl-Trait%3C1_usize%3E-for-u8"]//code ' 'impl Trait<1_usize> for u8'
23
- // @has - '//*[@id="impl-Trait%3C2_usize%3E-for-u8"]//code ' 'impl Trait<2_usize> for u8'
24
- // @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//code ' 'impl Trait<{1 + 2}> for u8'
25
- // @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//code ' \
22
+ // @has - '//*[@id="impl-Trait%3C1_usize%3E-for-u8"]//h3 ' 'impl Trait<1_usize> for u8'
23
+ // @has - '//*[@id="impl-Trait%3C2_usize%3E-for-u8"]//h3 ' 'impl Trait<2_usize> for u8'
24
+ // @has - '//*[@id="impl-Trait%3C{1%20+%202}%3E-for-u8"]//h3 ' 'impl Trait<{1 + 2}> for u8'
25
+ // @has - '//*[@id="impl-Trait%3CN%3E-for-%5Bu8%3B%20N%5D"]//h3 ' \
26
26
// 'impl<const N: usize> Trait<N> for [u8; N]'
27
27
pub trait Trait < const N : usize > { }
28
28
impl Trait < 1 > for u8 { }
@@ -36,7 +36,7 @@ pub struct Foo<const N: usize> where u8: Trait<N>;
36
36
// @has foo/struct.Bar.html '//pre[@class="rust struct"]' 'pub struct Bar<T, const N: usize>(_)'
37
37
pub struct Bar < T , const N : usize > ( [ T ; N ] ) ;
38
38
39
- // @has foo/struct.Foo.html '//div[@id="impl"]/code ' 'impl<const M: usize> Foo<M> where u8: Trait<M>'
39
+ // @has foo/struct.Foo.html '//div[@id="impl"]/h3 ' 'impl<const M: usize> Foo<M> where u8: Trait<M>'
40
40
impl < const M : usize > Foo < M > where u8 : Trait < M > {
41
41
// @has - '//*[@id="associatedconstant.FOO_ASSOC"]' 'pub const FOO_ASSOC: usize'
42
42
pub const FOO_ASSOC : usize = M + 13 ;
@@ -47,7 +47,7 @@ impl<const M: usize> Foo<M> where u8: Trait<M> {
47
47
}
48
48
}
49
49
50
- // @has foo/struct.Bar.html '//div[@id="impl"]/code ' 'impl<const M: usize> Bar<u8, M>'
50
+ // @has foo/struct.Bar.html '//div[@id="impl"]/h3 ' 'impl<const M: usize> Bar<u8, M>'
51
51
impl < const M : usize > Bar < u8 , M > {
52
52
// @has - '//*[@id="method.hey"]' \
53
53
// 'pub fn hey<const N: usize>(&self) -> Foo<N> where u8: Trait<N>'
0 commit comments