aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/self-path1.rs
blob: 425ba848fc049700a19211d8579186c63e4cec49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-additional-options "-w" }
struct foo;

fn bar() -> self::foo {
    crate::foo
}

fn baz() {
    let a: foo = self::bar();

    crate::bar();
}