Allow the drop_copy lint in some library examples

This commit is contained in:
Urgau 2023-03-30 09:24:44 +02:00
parent 61ff2718f7
commit 77773ad002

View file

@ -968,6 +968,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
/// Integers and other types implementing [`Copy`] are unaffected by `drop`.
///
/// ```
/// # #![cfg_attr(not(bootstrap), allow(drop_copy))]
/// #[derive(Copy, Clone)]
/// struct Foo(u8);
///