Improve code
This commit is contained in:
parent
6b830ec23e
commit
d64c2ac01a
5 changed files with 47 additions and 67 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
use std::fmt;
|
||||
|
||||
// @!has foo/struct.Bar.html 'impl<T> ToString for Bar'
|
||||
// @!has foo/struct.Bar.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Bar'
|
||||
pub struct Bar;
|
||||
|
||||
// @has foo/struct.Foo.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Foo'
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
// @has - '//code' 'impl<T> Send for Foo<T> where T: Send'
|
||||
// @has - '//code' 'impl<T> Sync for Foo<T> where T: Sync'
|
||||
// @count - '//*[@id="implementations-list"]/*[@class="impl"]' 0
|
||||
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 11
|
||||
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 9
|
||||
pub struct Foo<T> {
|
||||
field: T,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// 'impl<T> Send for Foo<T>'
|
||||
//
|
||||
// @count - '//*[@id="implementations-list"]/*[@class="impl"]' 1
|
||||
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 10
|
||||
// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 8
|
||||
pub struct Foo<T> {
|
||||
field: T,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue