☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
mod1.rs
☽
☼
gcc/testsuite/rust/execute/torture/mod1.rs
code
plain
raw
1
mod A {
2
pub mod B {
3
pub mod C {
4
pub struct Foo {
5
pub f: i32,
6
}
7
impl Foo {
8
pub fn new() -> Self {
9
Foo { f: 23i32 }
10
}
11
}
12
}
13
}
14
}
15
16
fn main() -> i32 {
17
let a = A::B::C::Foo::new();
18
let b = A::B::C::Foo { f: -23i32 };
19
20
a.f + b.f
21
}