aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution16.rs
blob: 230722ef819c3b0a5928fc3c66a466892e8a982d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { 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;

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