Debian Codegraph @

gcc/testsuite/rust/compile/complex-path1.rs

raw
1 // { dg-additional-options "-w" }
2 mod a {
3 pub fn foo() {}
4 }
5
6 mod b {
7 pub fn foo() {
8 super::a::foo();
9 }
10 }
11
12 mod foo {
13 pub struct bar(pub i32);
14 }
15
16 fn test() -> crate::foo::bar {
17 foo::bar(123)
18 }