☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
derive_clone_enum1.rs
☽
☼
gcc/testsuite/rust/compile/derive_clone_enum1.rs
code
plain
raw
1
#[lang = "clone"]
2
trait Clone {
3
pub fn clone(&self) -> Self;
4
}
5
6
impl Clone for i32 {
7
fn clone(&self) -> Self {
8
*self
9
}
10
}
11
12
#[derive(Clone)]
13
enum AllIdentifiers {
14
A,
15
B
16
}