Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
derive_clone_enum1.rs
blob: 7dc0a8086d956e449be1844981a895342dea82ec [
file
] [
log
] [
blame
]
#![
feature
(
lang_items
)]
#[
lang
=
"clone"
]
trait
Clone
{
pub
fn
clone
(&
self
)
->
Self
;
}
impl
Clone
for
i32
{
fn
clone
(&
self
)
->
Self
{
*
self
}
}
#[
derive
(
Clone
)]
enum
AllIdentifiers
{
A
,
B
}