Debian Codegraph @

gcc/testsuite/rust/compile/stmt_with_block_dot.rs

raw
1 #[lang = "sized"]
2 pub trait Sized {}
3
4 pub struct A(i32, i32);
5
6 trait Clone {
7 fn clone(&self) -> Self;
8 }
9
10 impl Clone for A {
11 fn clone(&self) -> A {
12 A(self.0, self.1)
13 }
14 }
15
16 pub fn foo(c: bool, d: i32) {
17 { (0, 1) }.0 + 1;
18 if c { A(4, 5) } else { A(12, 23) }.clone().0 * 5;
19 match d { 1 => A(-5, 0), _ => A(-23, -6) }.clone();
20 match d {
21 _ => { (4, 5) }.1 / 3,
22 };
23 }