Debian Codegraph @

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

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 test() -> i32 {
9 test()
10 }
11 }
12
13 fn test() -> i32 {
14 123
15 }
16
17 fn main() {
18 let a;
19 a = Foo::new(1, true);
20
21 let b;
22 b = Foo::test();
23 }