aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/mod2.rs
blob: 04722a94bb1770dff683f7dce167da4b45db76e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod foomod {
    pub struct Foo {}
}

impl foomod::Foo {
    pub fn new() -> Self {
        foomod::Foo {}
    }
}

fn main() {
    let _a = foomod::Foo::new();
}