Make core::mem::copy
const
This commit is contained in:
parent
88a192257c
commit
b5d5682ac3
@ -1005,7 +1005,7 @@ pub fn drop<T>(_x: T) {}
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "mem_copy_fn", issue = "98262")]
|
||||
pub fn copy<T: Copy>(x: &T) -> T {
|
||||
pub const fn copy<T: Copy>(x: &T) -> T {
|
||||
*x
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user