Debian Codegraph @

gcc/testsuite/rust/compile/derive_clone_enum2.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 TupleEnum {
14 A(i32),
15 B(i32, i32, i32)
16 }