Add tests for !Sized trait display
This commit is contained in:
parent
d20e05b78b
commit
46f24c912f
17
src/test/rustdoc/sized_trait.rs
Normal file
17
src/test/rustdoc/sized_trait.rs
Normal file
@ -0,0 +1,17 @@
|
||||
#![crate_name = "foo"]
|
||||
|
||||
// @has foo/struct.Bar.html
|
||||
// @!has - '//h3[@id="impl-Sized"]'
|
||||
pub struct Bar {
|
||||
a: u16,
|
||||
}
|
||||
|
||||
// @has foo/struct.Foo.html
|
||||
// @!has - '//h3[@id="impl-Sized"]'
|
||||
pub struct Foo<T: ?Sized>(T);
|
||||
|
||||
// @has foo/struct.Unsized.html
|
||||
// @has - '//h3[@id="impl-Sized"]/code' 'impl !Sized for Unsized'
|
||||
pub struct Unsized {
|
||||
data: [u8],
|
||||
}
|
Loading…
Reference in New Issue
Block a user