Make core::mem::copy const
This commit is contained in:
parent
88a192257c
commit
b5d5682ac3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue