diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-28 21:22:06 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-28 21:22:06 +0100 |
| commit | 7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c (patch) | |
| tree | 89d635525e73976b7332f48044d5933806d004f9 /tests/rustdoc-ui/lints/doc-without-codeblock.rs | |
| parent | c1cfab230ebb2e9cb9f4ea69773fef956c706a71 (diff) | |
| download | rust-7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c.tar.gz rust-7cf3f8ba7a4a7c8b9dc7a44ccc1702fa7d0d2d1c.zip | |
Do not emit `missing_doc_code_examples` rustdoc lint on module and a few other items
Diffstat (limited to 'tests/rustdoc-ui/lints/doc-without-codeblock.rs')
| -rw-r--r-- | tests/rustdoc-ui/lints/doc-without-codeblock.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/rustdoc-ui/lints/doc-without-codeblock.rs b/tests/rustdoc-ui/lints/doc-without-codeblock.rs index 86d7c83d335..ccb241d4037 100644 --- a/tests/rustdoc-ui/lints/doc-without-codeblock.rs +++ b/tests/rustdoc-ui/lints/doc-without-codeblock.rs @@ -1,4 +1,4 @@ -#![feature(rustdoc_missing_doc_code_examples)] //~ ERROR missing code example in this documentation +#![feature(rustdoc_missing_doc_code_examples)] #![deny(rustdoc::missing_doc_code_examples)] /// Some docs. @@ -6,7 +6,6 @@ pub struct Foo; /// And then, the princess died. -//~^ ERROR missing code example in this documentation pub mod foo { /// Or maybe not because she saved herself! //~^ ERROR missing code example in this documentation |
