gcc/testsuite/rust/compile/name_resolution15.rs
raw| 1 | // { dg-additional-options "-frust-name-resolution-2.0" } |
| 2 | #![feature(decl_macro)] |
| 3 | |
| 4 | pub mod foo { |
| 5 | pub struct Foo { |
| 6 | pub a: i32, |
| 7 | } |
| 8 | pub fn Foo() {} |
| 9 | pub macro Foo() {{}} |
| 10 | } |
| 11 | |
| 12 | pub use foo::Foo; |
| 13 | |
| 14 | use self::Foo as Fo; |
| 15 | |
| 16 | fn main() { |
| 17 | let _a = Fo(); |
| 18 | let _b = Fo { a: 15 }; |
| 19 | let _c = Fo!(); |
| 20 | } |