☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
impl_block1.rs
☽
☼
gcc/testsuite/rust/compile/torture/impl_block1.rs
code
plain
raw
1
struct Foo(i32, bool);
2
3
impl Foo {
4
fn new(a: i32, b: bool) -> Foo {
5
Foo(a, b)
6
}
7
8
fn test2() -> i32 {
9
test_forward_decl()
10
}
11
}
12
13
fn test_forward_decl() -> i32 {
14
123
15
}
16
17
fn main() {
18
let a;
19
a = Foo::new(1, true);
20
21
let b;
22
b = Foo::test2();
23
}