Add tests for !Sized trait display

This commit is contained in:
Guillaume Gomez 2021-02-18 20:46:34 +01:00
parent d20e05b78b
commit 46f24c912f
1 changed files with 17 additions and 0 deletions

View 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],
}