aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution15.rs
blob: 45f38da768af11794bb55760278f261edbe3bcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-additional-options "-frust-name-resolution-2.0" }
#![feature(decl_macro)]

pub mod foo {
    pub struct Foo {
        pub a: i32,
    }
    pub fn Foo() {}
    pub macro Foo() {{}}
}

pub use foo::Foo;

use self::Foo as Fo;

fn main() {
    let _a = Fo();
    let _b = Fo { a: 15 };
    let _c = Fo!();
}