]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/doc-without-codeblock.rs
Auto merge of #68551 - Marwes:allocations_mir, r=ecstatic-morse
[rust.git] / src / test / rustdoc-ui / doc-without-codeblock.rs
1 #![deny(missing_doc_code_examples)] //~ ERROR missing code example in this documentation
2
3 /// Some docs.
4 //~^ ERROR missing code example in this documentation
5 pub struct Foo;
6
7 /// And then, the princess died.
8 //~^ ERROR missing code example in this documentation
9 pub mod foo {
10     /// Or maybe not because she saved herself!
11     //~^ ERROR missing code example in this documentation
12     pub fn bar() {}
13 }