mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
More tests/rustdoc-html cleanups
This commit is contained in:
@@ -144,6 +144,10 @@ page, etc.
|
||||
Contains tests checking the content of the source code pages (when you click on the `source`
|
||||
links).
|
||||
|
||||
## `tests/rustdoc-html/struct`
|
||||
|
||||
Same as `tests/rustdoc-html/enum` but for struct items.
|
||||
|
||||
## `tests/rustdoc-html/synthetic_auto`
|
||||
|
||||
Somewhat equivalent to the `auto` folder's tests. Both should likely be merged.
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#![crate_name = "foo"]
|
||||
|
||||
//@ has foo/struct.Bar.html
|
||||
//@ !has - '//*[@id="impl-Sized"]' ''
|
||||
//@ !has - '//h3[@class="code-header"]' 'impl Sized for Bar'
|
||||
pub struct Bar {
|
||||
a: u16,
|
||||
}
|
||||
|
||||
//@ has foo/struct.Foo.html
|
||||
//@ !has - '//*[@id="impl-Sized"]' ''
|
||||
//@ !has - '//h3[@class="code-header"]' 'impl Sized for Foo'
|
||||
pub struct Foo<T: ?Sized>(T);
|
||||
|
||||
//@ has foo/struct.Unsized.html
|
||||
Reference in New Issue
Block a user