]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/sized_trait.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / rustdoc / sized_trait.rs
1 #![crate_name = "foo"]
2
3 // @has foo/struct.Bar.html
4 // @!has - '//div[@id="impl-Sized"]'
5 pub struct Bar {
6     a: u16,
7 }
8
9 // @has foo/struct.Foo.html
10 // @!has - '//div[@id="impl-Sized"]'
11 pub struct Foo<T: ?Sized>(T);
12
13 // @has foo/struct.Unsized.html
14 // @has - '//div[@id="impl-Sized"]/code' 'impl !Sized for Unsized'
15 pub struct Unsized {
16     data: [u8],
17 }