gcc/testsuite/rust/compile/name_resolution14.rs
raw| 1 | // { dg-options "-frust-name-resolution-2.0" } |
| 2 | |
| 3 | pub mod foo { |
| 4 | pub macro bar() {} |
| 5 | } |
| 6 | |
| 7 | use foo::biz; // { dg-error "unresolved import .foo::biz. .E0433." } |
| 8 | |
| 9 | use foo::{bar, baz, biz}; |
| 10 | // { dg-error "unresolved import .foo::baz. .E0433." "" { target *-*-* } .-1 } |
| 11 | // { dg-error "unresolved import .foo::biz. .E0433." "" { target *-*-* } .-2 } |
| 12 | |
| 13 | fn main() { |
| 14 | bar!(); |
| 15 | } |