Debian Codegraph @

gcc/testsuite/rust/compile/torture/block_expr2.rs

raw
1 fn test() -> i32 {
2 123
3 }
4
5 fn main() {
6 let a = { test() };
7 let b = {
8 // { dg-warning "unused name" "" { target *-*-* } .-1 }
9 if a > 10 {
10 a - 1
11 } else {
12 a + 1
13 }
14 };
15 }