gcc/testsuite/ChangeLog:
* rust/compile/derive_macro1.rs: Add #[lang = "clone"] to Clone trait.
* rust/compile/derive_macro3.rs: Likewise.
* rust/compile/derive_macro6.rs: Likewise.
* rust/execute/torture/derive_macro3.rs: Likewise.
#[lang = "sized"]
pub trait Sized {}
+#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}
#[lang = "sized"]
pub trait Sized {}
+#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}
pub trait Sized {}
pub trait Copy {}
+
+
+#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}
#[lang = "phantom_data"]
pub struct PhantomData<T>;
-pub struct AssertParamIsCopy<T: Copy> {
- pub _field: PhantomData<T>,
-}
-
impl Copy for i32 {}
impl Copy for i64 {}
impl Copy for U {}
#[lang = "sized"]
pub trait Sized {}
+#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}