Debian Codegraph @

gcc/testsuite/rust/compile/derive_clone_enum1.rs

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 }