hide another #[allow] directive from a docs example

This is a repeat for Rc of e0e64a8930,
which cleaned up the same thing for Arc.
This commit is contained in:
Jack O'Connor 2022-04-08 10:29:00 -07:00
parent 2d5a21f63c
commit c1023e9e5f

View file

@ -393,7 +393,7 @@ impl<T> Rc<T> {
/// # Examples
///
/// ```
/// #![allow(dead_code)]
/// # #![allow(dead_code)]
/// use std::rc::{Rc, Weak};
///
/// struct Gadget {