]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/sized_trait.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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-for-Unsized"]//h3[@class="code-header"]' 'impl !Sized for Unsized'
15 pub struct Unsized {
16     data: [u8],
17 }