☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
if_elif.rs
☽
☼
gcc/testsuite/rust/compile/torture/if_elif.rs
code
plain
raw
1
fn foo() -> bool {
2
true
3
}
4
5
fn bar() -> bool {
6
false
7
}
8
9
struct Foo1 {
10
one: i32
11
}
12
13
14
fn main() {
15
if foo() {
16
} else if bar() {
17
let a = Foo1{one: 1};
18
a.one;
19
}
20
}