mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
Allow the drop_copy lint in some library examples
This commit is contained in:
parent
61ff2718f7
commit
77773ad002
@ -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…
Reference in New Issue
Block a user