diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-02-18 20:46:34 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-02-19 22:38:07 +0100 |
| commit | 46f24c912f55c0a31d4708a145e56b5cf0f5c8f0 (patch) | |
| tree | 1f5d7c38692a14278e3eaf87de658442870ab999 | |
| parent | d20e05b78b39b67f2767911bf1c9610160924fba (diff) | |
| download | rust-46f24c912f55c0a31d4708a145e56b5cf0f5c8f0.tar.gz rust-46f24c912f55c0a31d4708a145e56b5cf0f5c8f0.zip | |
Add tests for !Sized trait display
| -rw-r--r-- | src/test/rustdoc/sized_trait.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc/sized_trait.rs b/src/test/rustdoc/sized_trait.rs new file mode 100644 index 00000000000..26d12817afc --- /dev/null +++ b/src/test/rustdoc/sized_trait.rs @@ -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], +} |
