diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-07 14:50:03 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-08-14 13:51:41 +0200 |
| commit | 1d42913058d4005655ea51b2d9dde707791c6541 (patch) | |
| tree | ac839f465e1248a0087333489a01ffa3ba0678bc /tests/rustdoc-gui/src/test_docs/lib.rs | |
| parent | 57d2b84a57225717c6af8748574b4a847d62433c (diff) | |
| download | rust-1d42913058d4005655ea51b2d9dde707791c6541.tar.gz rust-1d42913058d4005655ea51b2d9dde707791c6541.zip | |
Add GUI test for warning blocks
Diffstat (limited to 'tests/rustdoc-gui/src/test_docs/lib.rs')
| -rw-r--r-- | tests/rustdoc-gui/src/test_docs/lib.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs index 49484ee0869..38180aef762 100644 --- a/tests/rustdoc-gui/src/test_docs/lib.rs +++ b/tests/rustdoc-gui/src/test_docs/lib.rs @@ -65,6 +65,18 @@ impl Foo { pub fn must_use(&self) -> bool { true } + + /// hello + /// + /// <div id="doc-warning-1" class="warning">this is a warning</div> + /// + /// done + pub fn warning1() {} + + /// Checking there is no bottom margin if "warning" is the last element. + /// + /// <div id="doc-warning-2" class="warning">this is a warning</div> + pub fn warning2() {} } impl AsRef<str> for Foo { |
