]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/sized_trait.rs
Merge branch 'mr/1.60.0' into 'debian/experimental'
[rustc.git] / src / test / rustdoc / sized_trait.rs
1 #![crate_name = "foo"]
2
3 // @has foo/struct.Bar.html
4 // @!has - '//*[@id="impl-Sized"]'
5 pub struct Bar {
6 a: u16,
7 }
8
9 // @has foo/struct.Foo.html
10 // @!has - '//*[@id="impl-Sized"]'
11 pub struct Foo<T: ?Sized>(T);
12
13 // @has foo/struct.Unsized.html
14 // @has - '//*[@id="impl-Sized"]//h3[@class="code-header in-band"]' 'impl !Sized for Unsized'
15 pub struct Unsized {
16 data: [u8],
17 }