diff options
| author | jyn <github@jyn.dev> | 2023-04-29 04:25:04 -0500 | 
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-04-29 11:36:19 -0500 | 
| commit | 5da288f842f5616d58dc98338a833addf8a3cb2b (patch) | |
| tree | 2f8b35318ecc63e80b7483bd2740a7af96c91564 /tests/rustdoc-ui/doc-without-codeblock.rs | |
| parent | 5fa975142f98939222e12e8ca1338185cc7feb1c (diff) | |
| download | rust-5da288f842f5616d58dc98338a833addf8a3cb2b.tar.gz rust-5da288f842f5616d58dc98338a833addf8a3cb2b.zip | |
move lint tests into subdirectories
Diffstat (limited to 'tests/rustdoc-ui/doc-without-codeblock.rs')
| -rw-r--r-- | tests/rustdoc-ui/doc-without-codeblock.rs | 23 | 
1 files changed, 0 insertions, 23 deletions
| diff --git a/tests/rustdoc-ui/doc-without-codeblock.rs b/tests/rustdoc-ui/doc-without-codeblock.rs deleted file mode 100644 index 86d7c83d335..00000000000 --- a/tests/rustdoc-ui/doc-without-codeblock.rs +++ /dev/null @@ -1,23 +0,0 @@ -#![feature(rustdoc_missing_doc_code_examples)] //~ ERROR missing code example in this documentation -#![deny(rustdoc::missing_doc_code_examples)] - -/// Some docs. -//~^ ERROR missing code example in this documentation -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 - pub fn bar() {} -} - -// This impl is here to ensure the lint isn't emitted for foreign traits implementations. -impl std::ops::Neg for Foo { - type Output = Self; - - fn neg(self) -> Self::Output { - Self - } -} | 
