Allow the drop_copy lint in some library examples
This commit is contained in:
parent
61ff2718f7
commit
77773ad002
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue