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