@@ -19,10 +19,10 @@ pub use extern_crate::WTrait;
1919
2020// @has foo/trait.Trait.html '//pre[@class="rust trait"]' \
2121// '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 ' \
2626// 'impl<const N: usize> Trait<N> for [u8; N]'
2727pub trait Trait < const N : usize > { }
2828impl Trait < 1 > for u8 { }
@@ -36,7 +36,7 @@ pub struct Foo<const N: usize> where u8: Trait<N>;
3636// @has foo/struct.Bar.html '//pre[@class="rust struct"]' 'pub struct Bar<T, const N: usize>(_)'
3737pub struct Bar < T , const N : usize > ( [ T ; N ] ) ;
3838
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>'
4040impl < const M : usize > Foo < M > where u8 : Trait < M > {
4141 // @has - '//*[@id="associatedconstant.FOO_ASSOC"]' 'pub const FOO_ASSOC: usize'
4242 pub const FOO_ASSOC : usize = M + 13 ;
@@ -47,7 +47,7 @@ impl<const M: usize> Foo<M> where u8: Trait<M> {
4747 }
4848}
4949
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>'
5151impl < const M : usize > Bar < u8 , M > {
5252 // @has - '//*[@id="method.hey"]' \
5353 // 'pub fn hey<const N: usize>(&self) -> Foo<N> where u8: Trait<N>'
0 commit comments