1 #![feature(rustdoc_missing_doc_code_examples)] //~ ERROR missing code example in this documentation
2 #![deny(rustdoc::missing_doc_code_examples)]
5 //~^ ERROR missing code example in this documentation
8 /// And then, the princess died.
9 //~^ ERROR missing code example in this documentation
11 /// Or maybe not because she saved herself!
12 //~^ ERROR missing code example in this documentation
16 // This impl is here to ensure the lint isn't emitted for foreign traits implementations.
17 impl std::ops::Neg for Foo {
20 fn neg(self) -> Self::Output {