Skip to content

Commit

Permalink
Add tests for !Sized trait display
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 19, 2021
1 parent d20e05b commit 46f24c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/rustdoc/sized_trait.rs
Original file line number Diff line number Diff line change
@@ -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],
}

0 comments on commit 46f24c9

Please sign in to comment.